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:
Tim Shimmin
2007-04-20 03:58:19 +00:00
parent bf09e8cc4d
commit ef8b8fcc0d
4 changed files with 34 additions and 28 deletions
-21
View File
@@ -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