Whamcloud - gitweb
* vibnal fixes
[fs/lustre-release.git] / lustre / tests / runfailure-mds
index 0f473ff..f2942c3 100755 (executable)
@@ -3,43 +3,9 @@
 SRCDIR="`dirname $0`"
 . $SRCDIR/common.sh
 
-NETWORK=tcp
-LOCALHOST=localhost
-SERVER=localhost
-PORT=1234
+. $SRCDIR/llmount.sh
 
-setup_portals
-setup_lustre
-
-new_fs ext2 /tmp/ost 10000
-OST=$LOOPDEV
-MDSFS=ext3
-new_fs ${MDSFS} /tmp/mds 10000
-MDS=$LOOPDEV
-
-echo 0xffffffff > /proc/sys/portals/debug
-
-$OBDCTL <<EOF
-newdev
-attach mds MDSDEV
-setup ${MDS} ${MDSFS}
-newdev
-attach obdext2 OBDDEV
-setup ${OST}
-newdev
-attach ost OSTDEV
-setup \$OBDDEV
-newdev
-attach ldlm LDLMDEV
-setup
-newdev
-attach osc OSCDEV
-setup -1
-quit
-EOF
-
-MNT="mount -t lustre_lite -o device=`$OBDCTL name2dev OSCDEV` none /mnt/lustre"
-$MNT
+MNT="setup_mount"
 
 test_fail() {
        echo $1 > /proc/sys/lustre/fail_loc