2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
7 # Run fsstress with quotas enabled and verify accounted quotas in the end
9 # Derived from test 231
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
19 # get standard environment, filters and checks
26 tee -a $seqres.full |\
27 sed -e 's/[0-9][0-9]* inodes/I inodes/g' \
28 -e 's/[0-9][0-9]* paths/P paths/g' \
29 -e 's/seed = [0-9][0-9]*/seed = S/'
35 echo "Testing fsstress"
38 out=$SCRATCH_MNT/fsstress.$$
40 args=`_scale_fsstress_args -d $out -n $count -p 7 $FSSTRESS_AVOID`
42 echo "fsstress $args" >> $seqres.full
43 if ! $FSSTRESS_PROG $args | tee -a $seqres.full | _filter_num
45 echo " fsstress $args returned $?"
46 cat $tmp.out | tee -a $seqres.full
51 # real QA test starts here
57 _scratch_mkfs > $seqres.full 2>&1
58 _scratch_mount "-o usrquota,grpquota"
59 chmod 777 $SCRATCH_MNT
60 quotacheck -u -g $SCRATCH_MNT 2>/dev/null
61 quotaon -u -g $SCRATCH_MNT 2>/dev/null