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 _begin_fstest auto quota stress
13 # Import common functions.
19 tee -a $seqres.full |\
20 sed -e 's/[0-9][0-9]* inodes/I inodes/g' \
21 -e 's/[0-9][0-9]* paths/P paths/g' \
22 -e 's/seed = [0-9][0-9]*/seed = S/'
28 echo "Testing fsstress"
31 out=$SCRATCH_MNT/fsstress.$$
33 args=`_scale_fsstress_args -d $out -n $count -p 7 $FSSTRESS_AVOID`
35 echo "fsstress $args" >> $seqres.full
36 if ! $FSSTRESS_PROG $args | tee -a $seqres.full | _filter_num
38 echo " fsstress $args returned $?"
39 cat $tmp.out | tee -a $seqres.full
44 # real QA test starts here
49 _scratch_mkfs > $seqres.full 2>&1
50 _scratch_mount "-o usrquota,grpquota"
51 chmod 777 $SCRATCH_MNT
52 quotacheck -u -g $SCRATCH_MNT 2>/dev/null
53 quotaon -u -g $SCRATCH_MNT 2>/dev/null