Whamcloud - gitweb
b=22137 kernel oops at replay-single test_61d.
authorDmitry Zogin <dmitry.zogin@sun.com>
Fri, 2 Apr 2010 15:28:19 +0000 (11:28 -0400)
committerJohann Lombardi <johann@sun.com>
Tue, 6 Apr 2010 08:42:04 +0000 (10:42 +0200)
 replay-single.sh test_61d was modified to operate with MGS in case of
 the different MGS and MDS.

 i=grev

lustre/tests/cfg/local.sh
lustre/tests/replay-single.sh
lustre/tests/test-framework.sh

index 1db93d8..94232fd 100644 (file)
@@ -79,6 +79,7 @@ OST_MKFS_OPTS="--ost --fsname=$FSNAME --device-size=$OSTSIZE --mgsnode=$MGSNID -
 
 MDS_MOUNT_OPTS=${MDS_MOUNT_OPTS:-"-o loop"}
 OST_MOUNT_OPTS=${OST_MOUNT_OPTS:-"-o loop"}
+mgs_MOUNT_OPTS=${mgs_MOUNT_OPTS:-$MDS_MOUNT_OPTS}
 
 #client
 MOUNT=${MOUNT:-/mnt/${FSNAME}}
index d6ea71a..cce3326 100644 (file)
@@ -1477,11 +1477,11 @@ run_test 61c "test race mds llog sync vs llog cleanup"
 
 test_61d() { # bug 16002
 #define OBD_FAIL_OBD_LLOG_SETUP        0x605
-    stop mds
-    do_facet mds "lctl set_param fail_loc=0x80000605"
-    start mds $MDSDEV $MDS_MOUNT_OPTS && error "mds start should have failed"
-    do_facet mds "lctl set_param fail_loc=0"
-    start mds $MDSDEV $MDS_MOUNT_OPTS || error "cannot restart mds"
+    stop mgs
+    do_facet mgs "lctl set_param fail_loc=0x80000605"
+    start mgs $MGSDEV $mgs_MOUNT_OPTS && error "mgs start should have failed"
+    do_facet mgs "lctl set_param fail_loc=0"
+    start mgs $MGSDEV $mgs_MOUNT_OPTS || error "cannot restart mgs"
 }
 run_test 61d "error in llog_setup should cleanup the llog context correctly"
 
index c46629a..1913a05 100644 (file)
@@ -1402,8 +1402,11 @@ ostdevname() {
     echo -n $DEVPTR
 }
 
-facet_mntpt () {
+facet_mntpt() {
     local facet=$1
+    if combined_mgs_mds && [[ $facet = "mgs" ]]  ; then
+        facet="mds"
+    fi
     local var=${facet}_MOUNT
     eval mntpt=${!var:-${MOUNT%/*}/$facet}