Whamcloud - gitweb
New scripts to aid in testing; on one machine you should be able to run
[fs/lustre-release.git] / lustre / tests / mdcreqcleanup.sh
1 #!/bin/sh
2
3 SRCDIR="`dirname $0`"
4 . $SRCDIR/common.sh
5
6 rmmod llight
7 rmmod mdc
8
9 $R/usr/src/obd/utils/obdctl <<EOF
10 device 0
11 cleanup
12 detach
13 quit
14 EOF
15
16 rmmod mds
17 rmmod osc
18 rmmod ost
19 rmmod obdext2
20 rmmod obdclass
21 rmmod ptlrpc
22
23 $R/usr/src/portals/linux/utils/ptlctl <<EOF
24 setup tcp
25 disconnect localhost
26 del_uuid self
27 del_uuid mds
28 EOF
29
30 losetup -d ${LOOP}0
31
32 killall acceptor
33 rmmod ksocknal
34 rmmod portals