]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs/022: add a quota rescan -w to wait rescan finished.
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Tue, 4 Aug 2015 04:10:48 +0000 (14:10 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Aug 2015 04:10:48 +0000 (14:10 +1000)
commit42733488180aea7789cd0ce60b942a0579e0dfc8
tree254d84e447025286c8df2c462c751124121533e5
parent45e4e5b2f47dbc5548dcf33f607fe23cd3c1219a
btrfs/022: add a quota rescan -w to wait rescan finished.

When we enable quota, btrfs will rescan quota numbers. We need
to wait the rescan finished before any more operations on btrfs
qgroups. Otherwith, the new btrfs-progs would WARN out:

WARNING: Rescan is running, qgroup data may be incorrect.

It would make btrfs/022 failed.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/022