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 user quotas
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.
39 _scratch_mkfs_xfs -m crc=1 >/dev/null 2>&1
41 _qmount_option "uquota,gquota,pquota"
44 QUOTA_DIR=$SCRATCH_MNT/quota_dir
47 echo "*** turn off group quotas"
48 xfs_quota -x -c 'off -g' $SCRATCH_MNT
55 echo "*** turn off project quotas"
56 xfs_quota -x -c 'off -p' $SCRATCH_MNT
63 echo "*** turn off group/project quotas"
64 xfs_quota -x -c 'off -gp' $SCRATCH_MNT