Re: [PATCH 2/2] btrfs-progs: btrfsck: verify qgroups above level 0

2016-06-17 Thread David Sterba
Hi, I have non-qgroup related comments: On Wed, Jun 15, 2016 at 03:50:02PM -0700, Mark Fasheh wrote: > --- a/qgroup-verify.c > +++ b/qgroup-verify.c > @@ -35,7 +35,8 @@ > /*#define QGROUP_VERIFY_DEBUG*/ > static unsigned long tot_extents_scanned = 0; > > -static void add_bytes(u64

[PATCH 2/2] btrfs-progs: btrfsck: verify qgroups above level 0

2016-06-15 Thread Mark Fasheh
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