Whamcloud - gitweb
- add more infrastructure to handle extents and debug.
[fs/lustre-release.git] / lustre / tests / llmountcleanup.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`"
4 . $SRCDIR/common.sh
5
6 umount /mnt/obd
7
8 rmmod llight
9 rmmod mdc
10
11 $OBDCTL <<EOF
12 device 3
13 cleanup
14 detach
15 device 2
16 cleanup
17 detach
18 device 1
19 cleanup
20 detach
21 device 0
22 cleanup
23 detach
24 quit
25 EOF
26
27 rmmod obdecho
28 rmmod mds
29 rmmod osc
30 rmmod ost
31 rmmod obdext2
32 rmmod ldlm
33 rmmod ptlrpc
34 rmmod obdclass
35
36 $PTLCTL <<EOF
37 setup tcp
38 disconnect
39 del_uuid self
40 del_uuid mds
41 del_uuid ost
42 quit
43 EOF
44
45 rmmod kqswnal
46 rmmod ksocknal
47 killall acceptor
48 rmmod portals
49
50 losetup -d ${LOOP}0
51 losetup -d ${LOOP}1
52 losetup -d ${LOOP}2