Whamcloud - gitweb
Allow sanity.sh to work with zconf.
authorbrian <brian>
Sat, 18 Jun 2005 03:15:29 +0000 (03:15 +0000)
committerbrian <brian>
Sat, 18 Jun 2005 03:15:29 +0000 (03:15 +0000)
Taken from b1_4 branch.  Thanx nic and adilger.

lustre/tests/sanity.sh

index ff6fa73..47e73c3 100644 (file)
@@ -187,10 +187,13 @@ pass() {
        echo PASS $@
 }
 
        echo PASS $@
 }
 
-MOUNT="`mount | awk '/^'$NAME' .* lustre_lite / { print $3 }'`"
+mounted_lustre_filesystems() {
+       awk '($3 ~ "lustre") { print $2 }' /proc/mounts
+}
+MOUNT="`mounted_lustre_filesystems`"
 if [ -z "$MOUNT" ]; then
        sh llmount.sh
 if [ -z "$MOUNT" ]; then
        sh llmount.sh
-       MOUNT="`mount | awk '/^'$NAME' .* lustre_lite / { print $3 }'`"
+       MOUNT="`mounted_lustre_filesystems`"
        [ -z "$MOUNT" ] && error "NAME=$NAME not mounted"
        I_MOUNTED=yes
 fi
        [ -z "$MOUNT" ] && error "NAME=$NAME not mounted"
        I_MOUNTED=yes
 fi