Whamcloud - gitweb
class/class_obd.c: small OBD_ATTACHED sanity cleanup; OBD_SET_UP fix.
[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 $R/usr/src/obd/utils/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 mds
28 rmmod osc
29 rmmod ost
30 rmmod obdext2
31 rmmod obdclass
32 rmmod ptlrpc
33
34 $R/usr/src/portals/linux/utils/ptlctl <<EOF
35 setup tcp
36 disconnect localhost
37 del_uuid self
38 del_uuid mds
39 del_uuid ost
40 EOF
41
42 rmmod ksocknal
43 killall acceptor
44 rmmod portals
45
46 losetup -d ${LOOP}0
47 losetup -d ${LOOP}1