X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fllmountcleanup.sh;h=0448d31a16574f4aa82ec8a6d319b7e08bfb9892;hb=f3f1e4347ba38ab91386c3c25f2e5c02d3ddf682;hp=175c897fde0abdc3458865ebccf22d50c25517e8;hpb=5a041e92e58f516516912a1dda4c3e8f4f624e15;p=fs%2Flustre-release.git diff --git a/lustre/tests/llmountcleanup.sh b/lustre/tests/llmountcleanup.sh index 175c897..0448d31 100755 --- a/lustre/tests/llmountcleanup.sh +++ b/lustre/tests/llmountcleanup.sh @@ -1,51 +1,79 @@ #!/bin/sh -SRCDIR="`dirname $0`" +SRCDIR="`dirname $0`/" . $SRCDIR/common.sh -umount /mnt/obd +TIME=`date +'%s'` -rmmod llight -rmmod mdc +$DBGCTL debug_kernel /tmp/debug.1.$TIME 1 + +if mount | grep '/mnt/lustre'; then + umount /mnt/lustre || fail "cannot unmount" +fi + +killall acceptor +rmmod llite $OBDCTL <