Whamcloud - gitweb
LU-12511 utils: Move utilies specific values out of Lustre UAPI headers
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
index 6681d3f..454ed6e 100755 (executable)
@@ -1,48 +1,7 @@
-#!/bin/sh
+#!/bin/bash
 
-SRCDIR="`dirname $0`"
-. $SRCDIR/common.sh
+LUSTRE=${LUSTRE:-$(dirname $0)/..}
+. $LUSTRE/tests/test-framework.sh
+init_test_env $@
 
-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
-quit
-EOF
-
-rmmod ksocknal
-killall acceptor
-rmmod portals
-
-losetup -d ${LOOP}0
-losetup -d ${LOOP}1
\ No newline at end of file
+cleanupall -f