Whamcloud - gitweb
Allow the user to specify lmc and config filenames.
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
index 0267679..136f507 100755 (executable)
@@ -1,50 +1,10 @@
 #!/bin/sh
 
-SRCDIR="`dirname $0`"
-. $SRCDIR/common.sh
+LCONF=../utils/lconf
 
-umount /mnt/obd
+if [ ! -f local.xml ]; then
+   ./local.sh
+fi
 
-rmmod llight
-rmmod mdc
+${LCONF} --cleanup local.xml
 
-$OBDCTL <<EOF
-device 3
-cleanup
-detach
-device 2
-cleanup
-detach
-device 1
-cleanup
-detach
-device 0
-cleanup
-detach
-quit
-EOF
-
-rmmod obdecho
-rmmod mds
-rmmod osc
-rmmod ost
-rmmod obdext2
-rmmod ptlrpc
-rmmod obdclass
-
-$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
-losetup -d ${LOOP}2