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.
37 _require_command "$KILLALL_PROG" killall
40 _scratch_mkfs_xfs -m crc=1 >/dev/null 2>&1
42 _qmount_option "uquota,gquota,pquota"
44 QUOTA_DIR=$SCRATCH_MNT/quota_dir
53 $FSSTRESS_PROG -d $QUOTA_DIR -n 1000 -p 100 $FSSTRESS_AVOID >/dev/null 2>&1 &
55 xfs_quota -x -c "off -$type" $SCRATCH_DEV
57 $KILLALL_PROG -q $FSSTRESS_PROG
61 echo "*** turn off group quotas"
65 echo "*** turn off project quotas"
69 echo "*** turn off group/project quotas"