Whamcloud - gitweb
- changed back to using no optimization for UML modules, and no -g2
[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 quit
41 EOF
42
43 rmmod ksocknal
44 killall acceptor
45 rmmod portals
46
47 losetup -d ${LOOP}0
48 losetup -d ${LOOP}1