mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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>
This commit is contained in:
committed by
Dave Chinner
parent
45e4e5b2f4
commit
4273348818
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user