From: Dongsheng Yang Date: Tue, 4 Aug 2015 04:10:48 +0000 (+1000) Subject: btrfs/022: add a quota rescan -w to wait rescan finished. X-Git-Tag: v2022.05.01~2858 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=42733488180aea7789cd0ce60b942a0579e0dfc8;p=xfstests-dev.git 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 Reviewed-by: Filipe Manana Signed-off-by: Dave Chinner --- diff --git a/tests/btrfs/022 b/tests/btrfs/022 index 5c1a82d7..56d4f3d4 100755 --- a/tests/btrfs/022 +++ b/tests/btrfs/022 @@ -51,6 +51,7 @@ _basic_test() { _run_btrfs_util_prog subvolume create $SCRATCH_MNT/a _run_btrfs_util_prog quota enable $SCRATCH_MNT/a + _run_btrfs_util_prog quota rescan -w $SCRATCH_MNT subvolid=$(_btrfs_get_subvolid $SCRATCH_MNT a) $BTRFS_UTIL_PROG qgroup show $units $SCRATCH_MNT | grep $subvolid >> \ $seqres.full 2>&1