btrfs: qgroup handling on data extents balance

Btrfs after v4.2 kernel will leaks qgroup numbers for relocated data
extents, due to the design of tree block direct swap.

This test case will check if such data balance will corrupt qgroup.

Reported-by: Mark Fasheh <mfasheh@suse.de>
Reported-by: Filipe Manana <fdmanana@gmail.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
Qu Wenruo
2016-06-14 17:26:27 +08:00
committed by Eryu Guan
parent 3cd0566bdc
commit 5f02db6f02
3 changed files with 153 additions and 0 deletions
+1
View File
@@ -125,3 +125,4 @@
120 auto quick snapshot metadata
121 auto quick snapshot qgroup
122 auto quick snapshot qgroup
123 auto quick qgroup