mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Put _qmount_option into common.quota for other quota tests to use.
Merge of master-melb:xfs-cmds:28443a by kenmcd. Put _qmount_option into common.quota for other quota tests to use.
This commit is contained in:
@@ -155,27 +155,6 @@ _exercise()
|
||||
|
||||
}
|
||||
|
||||
|
||||
#ensures only one quota mount option is specified
|
||||
_qmount_option()
|
||||
{
|
||||
#replace any user defined quota options
|
||||
export MOUNT_OPTIONS=`echo $MOUNT_OPTIONS \
|
||||
| sed -e 's/uquota/$q_opt/g' \
|
||||
-e 's/gquota/$q_opt/g' \
|
||||
-e 's/pquota/$q_opt/g' \
|
||||
-e 's/quota/$q_opt/g' \
|
||||
-e 's/uqnoenforce/$q_opt/g' \
|
||||
-e 's/gqnoenforce/$q_opt/g' \
|
||||
-e 's/pqnoenforce/$q_opt/g' \
|
||||
-e 's/qnoenforce/$q_opt/g' \
|
||||
| sed 's/$q_opt/'$1'/g'`
|
||||
|
||||
#check $q_opt is in new mount options
|
||||
echo $MOUNT_OPTIONS | grep "$1" > /dev/null 2>&1
|
||||
[ "$?" -eq 0 ] || export MOUNT_OPTIONS="$MOUNT_OPTIONS -o $1"
|
||||
}
|
||||
|
||||
cat >$tmp.projects <<EOF
|
||||
1:$SCRATCH_MNT
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user