Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
index 473aca8..076faa7 100755 (executable)
@@ -1,47 +1,10 @@
-#!/bin/sh
+#!/bin/bash
+export PATH=`dirname $0`/../utils:$PATH
+NAME=${NAME:-local}
 
-SRCDIR="`dirname $0`"
-. $SRCDIR/common.sh
+LUSTRE=${LUSTRE:-`dirname $0`/..}
+. $LUSTRE/tests/test-framework.sh
+init_test_env $@
+. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
 
-umount /mnt/obd
-
-rmmod llight
-rmmod mdc
-
-$R/usr/src/obd/utils/obdctl <<EOF
-device 3
-cleanup
-detach
-device 2
-cleanup
-detach
-device 1
-cleanup
-detach
-device 0
-cleanup
-detach
-quit
-EOF
-
-rmmod mds
-rmmod osc
-rmmod ost
-rmmod obdext2
-rmmod obdclass
-rmmod ptlrpc
-
-$R/usr/src/portals/linux/utils/ptlctl <<EOF
-setup tcp
-disconnect localhost
-del_uuid self
-del_uuid mds
-del_uuid ost
-EOF
-
-rmmod ksocknal
-killall acceptor
-rmmod portals
-
-losetup -d ${LOOP}0
-losetup -d ${LOOP}1
\ No newline at end of file
+cleanupall -f