summaryrefslogtreecommitdiff
path: root/ioctl-test.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2018-04-30 14:16:59 +0800
committerDavid Sterba <dsterba@suse.com>2018-06-07 16:37:33 +0200
commit4bd7bbb6f6859583da1a81406cb3c02d613c9b2c (patch)
treee245c9254672712296f3d8d24b69f2688c0b1cfd /ioctl-test.c
parent9f8316f1c870415383d8761e1455f1375e2e00b0 (diff)
btrfs-progs: check: Make btrfs check return error for qgroup mismatch
Current btrfs-check will check qgroup consistency, but even when it finds something wrong, the return value is still 0. Fix it by allowing report_qgroups() to return int to indicate qgroup mismatch, and also add extra logic to return no error if qgroup repair is successful. Without this patch, fstests can't detect qgroup corruption by its fsck alone. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'ioctl-test.c')
0 files changed, 0 insertions, 0 deletions