Whamcloud - gitweb
allow sanity to work on 0conf mounted systems
authornic <nic>
Thu, 3 Mar 2005 23:30:21 +0000 (23:30 +0000)
committernic <nic>
Thu, 3 Mar 2005 23:30:21 +0000 (23:30 +0000)
lustre/tests/sanity.sh

index 0cd5e2f..8f955ae 100644 (file)
@@ -167,10 +167,10 @@ pass() {
        echo PASS $@
 }
 
-MOUNT="`mount | awk '/^'$NAME' .* lustre_lite / { print $3 }'`"
+MOUNT="`cat /proc/mounts | egrep "lustre|lustre_lite" | awk '{print $2}'`"
 if [ -z "$MOUNT" ]; then
        sh llmount.sh
-       MOUNT="`mount | awk '/^'$NAME' .* lustre_lite / { print $3 }'`"
+       MOUNT="`cat /proc/mounts | egrep "lustre|lustre_lite" | awk '{print $2}'`"
        [ -z "$MOUNT" ] && error "NAME=$NAME not mounted"
        I_MOUNTED=yes
 fi