btrfs-progs: check: verify qgroups above level 0
authorMark Fasheh <mfasheh@suse.de>
Fri, 17 Jun 2016 20:37:48 +0000 (13:37 -0700)
committerDavid Sterba <dsterba@suse.com>
Wed, 13 Jul 2016 16:44:13 +0000 (18:44 +0200)
commit93dabf211d74daf6e3de642bdd887a90a00f7b49
tree240b00a7c5c711274b14865a38dc5b00b7d54393
parent72e2a08a5c6d5f12be273e286e3355496e4a2f08
btrfs-progs: check: verify qgroups above level 0

At the moment we only check subvolume quota groups (level 0). With this
patch we can check groups above 0, thus verifying the entire qgroup
hierarchy on a file system.  The accounting portion of this patch is modeled
after the kernel - we are essentially reimplementing the 'quota rescan' case
here. Most other sections of this code went unchanged, in particular the
root counting works independently of the accounting.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: David Sterba <dsterba@suse.com>
qgroup-verify.c