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
35 run_check _scratch_mkfs "-b 1g"
39 # -w ensures that the only ops are ones which cause write I/O
40 run_check $FSSTRESS_PROG -d $SCRATCH_MNT -w -p 5 -n 1000 \
41 $FSSTRESS_AVOID >&/dev/null
43 _run_btrfs_util_prog subvolume snapshot $SCRATCH_MNT \
46 run_check $FSSTRESS_PROG -d $SCRATCH_MNT/snap1 -w -p 5 -n 1000 \
47 $FSSTRESS_AVOID >&/dev/null
49 _run_btrfs_util_prog quota enable $SCRATCH_MNT
50 _run_btrfs_util_prog quota rescan -w $SCRATCH_MNT
52 echo "Silence is golden"
53 # btrfs check will detect any qgroup number mismatch.