From 7a63672f0a3ed45308b57ff38b70d4b1da073a4d Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 18 Jun 2008 15:18:20 +0000
Subject: [PATCH] re-vert shadow b1_6 1.42.10.80 (robert.read 1.42.10.76.2.4
 merge) and 1.42.10.76.2.5 commits: move debug code && sync to appropriate
 place

---
 lustre/tests/test-framework.sh | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh
index 3ebd2cebfc..926cf13aa7 100644
--- a/lustre/tests/test-framework.sh
+++ b/lustre/tests/test-framework.sh
@@ -268,24 +268,21 @@ mount_facet() {
     local dev=${facet}_dev
     local opt=${facet}_opt
     echo "Starting ${facet}: ${!opt} $@ ${!dev} ${MOUNT%/*}/${facet}"
-
     do_facet ${facet} mount -t lustre ${!opt} $@ ${!dev} ${MOUNT%/*}/${facet}     
     RC=${PIPESTATUS[0]}
-    if [ $RC -eq 0 ]; then
-        label=$(do_facet ${facet} "e2label ${!dev}")
-        [ -z "$label" ] && echo no label for ${!dev} && exit 1
-        eval export ${facet}_svc=${label}
-        echo Started ${label}
-    fi
-
     if [ $RC -ne 0 ]; then
         echo "mount -t lustre $@ ${!dev} ${MOUNT%/*}/${facet}"
         echo "Start of ${!dev} on ${facet} failed ${RC}"
+    else
         do_facet ${facet} "lctl set_param debug=$PTLDEBUG; \
             lctl set_param subsystem_debug=${SUBSYSTEM# }; \
             lctl set_param debug_mb=${DEBUG_SIZE}; \
             sync"
-
+ 
+        label=$(do_facet ${facet} "e2label ${!dev}")
+        [ -z "$label" ] && echo no label for ${!dev} && exit 1
+        eval export ${facet}_svc=${label}
+        echo Started ${label}
     fi
     return $RC
 }
-- 
GitLab