4 # Run fsstress with quotas enabled and verify accounted quotas in the end
6 # Derived from test 231
7 #-----------------------------------------------------------------------
8 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved.
10 # This program is free software; you can redistribute it and/or
11 # modify it under the terms of the GNU General Public License as
12 # published by the Free Software Foundation.
14 # This program is distributed in the hope that it would be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write the Free Software Foundation,
21 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 #-----------------------------------------------------------------------
27 seqres=$RESULT_DIR/$seq
28 echo "QA output created by $seq"
32 status=1 # failure is the default!
33 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
35 # get standard environment, filters and checks
42 tee -a $seqres.full |\
43 sed -e 's/[0-9][0-9]* inodes/I inodes/g' \
44 -e 's/[0-9][0-9]* paths/P paths/g' \
45 -e 's/seed = [0-9][0-9]*/seed = S/'
51 echo "Testing fsstress"
54 out=$SCRATCH_MNT/fsstress.$$
56 args=`_scale_fsstress_args -d $out -n $count -p 7`
58 echo "fsstress $args" >> $seqres.full
59 if ! $FSSTRESS_PROG $args | tee -a $seqres.full | _filter_num
61 echo " fsstress $args returned $?"
62 cat $tmp.out | tee -a $seqres.full
67 # real QA test starts here
74 _scratch_mkfs > $seqres.full 2>&1
75 _scratch_mount "-o usrquota,grpquota"
76 chmod 777 $SCRATCH_MNT
77 quotacheck -u -g $SCRATCH_MNT 2>/dev/null
78 quotaon -u -g $SCRATCH_MNT 2>/dev/null