btrfs: add test for quota groups and drop snapshot
authorMark Fasheh <mfasheh@suse.de>
Wed, 14 Oct 2015 03:06:50 +0000 (14:06 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 14 Oct 2015 03:06:50 +0000 (14:06 +1100)
commit4067308c8f7a19a5faf37a02e91ac9d71308b29b
tree5e3593b0b6bd2b4dcc3c036a3d83df4f755a1484
parentf0c4b462d20c2248a0a6b7a5f33ed5d5fd85fac4
btrfs: add test for quota groups and drop snapshot

Test btrfs quota group consistency operations during snapshot
delete. Btrfs has had long standing issues with drop snapshot
failing to properly account for quota groups. This test crafts
several snapshot trees with shared and exclusive elements. One of
the trees is removed and then quota group consistency is checked.

This issue is fixed by the following linux kernel patches:
   Btrfs: use btrfs_get_fs_root in resolve_indirect_ref
   Btrfs: keep dropped roots in cache until transaciton commit
   btrfs: qgroup: account shared subtree during snapshot delete

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/104 [new file with mode: 0644]
tests/btrfs/104.out [new file with mode: 0644]
tests/btrfs/group