btrfs: Use _require_btrfs_qgroup_report to replace open code
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Fri, 9 Dec 2016 01:19:59 +0000 (09:19 +0800)
committerEryu Guan <eguan@redhat.com>
Fri, 9 Dec 2016 07:55:19 +0000 (15:55 +0800)
commit180843c1f468025749af2d7c171e3f57075b8459
tree19d8cac4b45ff5f54572f531b7ed653431be6f53
parent47bb69de19c601dcf18f42b7f109a6ee9f8edd19
btrfs: Use _require_btrfs_qgroup_report to replace open code

Introduce new _require_btrfs_qgroup_report function, which will
check the accessibility to "btrfs check --qgroup-report", then set a
global flag to info _check_scratch_fs() to do extra qgroup check.

Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
check
common/btrfs
common/rc
tests/btrfs/022
tests/btrfs/028
tests/btrfs/042
tests/btrfs/099
tests/btrfs/104
tests/btrfs/122
tests/btrfs/123
tests/btrfs/126