Whamcloud - gitweb
Update the new test configuration stuff to use the newly implemented obdctl
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`"
4 . $SRCDIR/common.sh
5
6 $DBGCTL get_debug > /tmp/debug.1
7
8 if [ "`mount | grep '/mnt/lustre'`" ]; then
9         umount /mnt/lustre || fail "cannot unmount"
10 fi
11
12 killall acceptor
13 rmmod llite
14 rmmod mdc
15
16 $OBDCTL <<EOF
17 name2dev OSCDEV
18 cleanup
19 detach
20 name2dev LDLMDEV
21 cleanup
22 detach
23 name2dev RPCDEV
24 cleanup
25 detach
26 name2dev OSTDEV
27 cleanup
28 detach
29 name2dev OBDDEV
30 cleanup
31 detach
32 name2dev MDSDEV
33 cleanup
34 detach
35 quit
36 EOF
37
38 rmmod obdecho
39 rmmod mds
40 rmmod osc
41 rmmod ost
42 rmmod obdfilter
43 rmmod obdext2
44 rmmod ldlm
45 rmmod ptlrpc
46 rmmod obdclass
47
48 $DBGCTL get_debug > /tmp/debug.2
49
50 $PTLCTL <<EOF
51 setup tcp
52 disconnect
53 del_uuid self
54 del_uuid mds
55 del_uuid ost
56 del_uuid ldlm
57 quit
58 EOF
59
60 rmmod kqswnal
61 rmmod ksocknal
62 rmmod portals
63
64 losetup -d ${LOOP}0
65 losetup -d ${LOOP}1
66 losetup -d ${LOOP}2