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 _begin_fstest auto quota
13 # Import common functions.
17 # Modify as appropriate.
24 _require_command "$KILLALL_PROG" killall
26 _scratch_mkfs_xfs -m crc=1 >/dev/null 2>&1
28 _qmount_option "uquota,gquota,pquota"
30 QUOTA_DIR=$SCRATCH_MNT/quota_dir
39 $FSSTRESS_PROG -d $QUOTA_DIR -n 1000000 -p 100 $FSSTRESS_AVOID >/dev/null 2>&1 &
41 xfs_quota -x -c "off -$type" $SCRATCH_DEV
43 $KILLALL_PROG -q $FSSTRESS_PROG
47 echo "*** turn off group quotas"
51 echo "*** turn off project quotas"
55 echo "*** turn off group/project quotas"