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 seqres=$RESULT_DIR/$seq
11 echo "QA output created by $seq"
22 trap "_cleanup; exit \$status" 0 1 2 3 15
24 # get standard environment, filters and checks
28 # real QA test starts here
34 run_check _scratch_mkfs "-b 1g"
38 # -w ensures that the only ops are ones which cause write I/O
39 run_check $FSSTRESS_PROG -d $SCRATCH_MNT -w -p 5 -n 1000 \
40 $FSSTRESS_AVOID >&/dev/null
42 _run_btrfs_util_prog subvolume snapshot $SCRATCH_MNT \
45 run_check $FSSTRESS_PROG -d $SCRATCH_MNT/snap1 -w -p 5 -n 1000 \
46 $FSSTRESS_AVOID >&/dev/null
48 _run_btrfs_util_prog quota enable $SCRATCH_MNT
49 _run_btrfs_util_prog quota rescan -w $SCRATCH_MNT
51 echo "Silence is golden"
52 # btrfs check will detect any qgroup number mismatch.