Whamcloud - gitweb
- more LDLM refcount locking infrastructure
[fs/lustre-release.git] / lustre / demos / obdfsclean.sh
1 #!/bin/sh
2 # Utility script for cleaning up a simple OBDFS mounted filesystem
3 #
4 # Copyright (C) 2001  Cluster File Systems, Inc.
5 #
6 # This code is issued under the GNU General Public License.
7 # See the file COPYING in this distribution
8
9 OBDDIR="`dirname $0`/.."
10 . $OBDDIR/demos/config.sh
11
12 plog umount $MNTOBD
13 #killall pupdated       # stop the OBDFS flush daemon
14 plog rmmod obdfs
15
16 plog log "CLEANUP/DETACH"
17 $OBDDIR/utils/obdctl << EOF
18 device 0
19 cleanup
20 detach
21 quit
22 EOF
23
24 plog rmmod xfs
25 plog rmmod xfs_support
26 plog rmmod pagebuf
27 plog rmmod obdfilter
28 plog rmmod obdext2
29 plog rmmod obdclass
30
31 $OBDDIR/demos/baseclean.sh