2 # SPDX-License-Identifier: GPL-2.0
3 # Copyright (c) 2013 Oracle, Inc. All Rights Reserved.
7 # Test to verify that turn group/project quotas off while fstress and
8 # user quotas are left on.
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
16 status=1 # failure is the default!
17 trap "_cleanup; exit \$status" 0 1 2 3 15
25 # get standard environment, filters and checks
30 # Modify as appropriate.
38 _require_command "$KILLALL_PROG" killall
41 _scratch_mkfs_xfs -m crc=1 >/dev/null 2>&1
43 _qmount_option "uquota,gquota,pquota"
45 QUOTA_DIR=$SCRATCH_MNT/quota_dir
54 $FSSTRESS_PROG -d $QUOTA_DIR -n 1000 -p 100 $FSSTRESS_AVOID >/dev/null 2>&1 &
56 xfs_quota -x -c "off -$type" $SCRATCH_DEV
58 $KILLALL_PROG -q $FSSTRESS_PROG
62 echo "*** turn off group quotas"
66 echo "*** turn off project quotas"
70 echo "*** turn off group/project quotas"