2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (C) 2014 Fujitsu. All rights reserved.
5 # FSQA Test No. btrfs/057
7 # Quota rescan stress test, we run fsstress and quota rescan concurrently
10 _begin_fstest auto quick
12 # Import common functions.
15 # real QA test starts here
19 run_check _scratch_mkfs "-b 1g"
23 # -w ensures that the only ops are ones which cause write I/O
24 run_check $FSSTRESS_PROG -d $SCRATCH_MNT -w -p 5 -n 1000 \
25 $FSSTRESS_AVOID >&/dev/null
27 _run_btrfs_util_prog subvolume snapshot $SCRATCH_MNT \
30 run_check $FSSTRESS_PROG -d $SCRATCH_MNT/snap1 -w -p 5 -n 1000 \
31 $FSSTRESS_AVOID >&/dev/null
33 _run_btrfs_util_prog quota enable $SCRATCH_MNT
34 _run_btrfs_util_prog quota rescan -w $SCRATCH_MNT
36 echo "Silence is golden"
37 # btrfs check will detect any qgroup number mismatch.