From: Elena Gryaznova Date: Thu, 23 Dec 2010 20:37:13 +0000 (+0300) Subject: b=23793 MOUNTOPT "-o" cleanup X-Git-Tag: 1.8.5.52~7 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=56c9e7eaa66ab552c5ac9ffc87b54c374b44f764;p=fs%2Flustre-release.git b=23793 MOUNTOPT "-o" cleanup i=Minh.Diep --- diff --git a/lustre/tests/cfg/local.sh b/lustre/tests/cfg/local.sh index 704741e..e6dcc95 100644 --- a/lustre/tests/cfg/local.sh +++ b/lustre/tests/cfg/local.sh @@ -86,7 +86,7 @@ MGS_MOUNT_OPTS=${MGS_MOUNT_OPTS:-$MDS_MOUNT_OPTS} MOUNT=${MOUNT:-/mnt/${FSNAME}} MOUNT1=${MOUNT1:-$MOUNT} MOUNT2=${MOUNT2:-${MOUNT}2} -MOUNTOPT=${MOUNTOPT:-"user_xattr,acl,flock"} +MOUNTOPT=${MOUNTOPT:-"-o user_xattr,acl,flock"} DIR=${DIR:-$MOUNT} DIR1=${DIR:-$MOUNT1} DIR2=${DIR2:-$MOUNT2} diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index 8cf00f3..3d2c816 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -164,12 +164,10 @@ mount_client() { } remount_client() { - local SAVEMOUNTOPT=$MOUNTOPT - MOUNTOPT="remount,$1" + local mountopt="-o remount,$1" local MOUNTPATH=$2 echo "remount '$1' lustre on ${MOUNTPATH}....." - zconf_mount `hostname` $MOUNTPATH || return 96 - MOUNTOPT=$SAVEMOUNTOPT + zconf_mount `hostname` $MOUNTPATH "$mountopt" || return 96 } umount_client() { diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index a4cb94a..cd6821b 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -575,13 +575,10 @@ setup_quota(){ } zconf_mount() { - local OPTIONS local client=$1 local mnt=$2 - # Only supply -o to mount if we have options - if [ -n "$MOUNTOPT" ]; then - OPTIONS="-o $MOUNTOPT" - fi + local OPTIONS=${3:-$MOUNTOPT} + local device=$MGSNID:/$FSNAME if [ -z "$mnt" -o -z "$FSNAME" ]; then echo Bad zconf mount command: opt=$OPTIONS dev=$device mnt=$mnt @@ -689,10 +686,6 @@ zconf_mount_clients() { local mnt=$2 local OPTIONS=${3:-$MOUNTOPT} - # Only supply -o to mount if we have options - if [ "$OPTIONS" ]; then - OPTIONS="-o $OPTIONS" - fi local device=$MGSNID:/$FSNAME if [ -z "$mnt" -o -z "$FSNAME" ]; then echo Bad zconf mount command: opt=$OPTIONS dev=$device mnt=$mnt