Whamcloud - gitweb
- ext2_obd.c --- fix the bugs in read/write for Linux 2.4.3
[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/class/obdcontrol -f << EOF
18 device /dev/obd0
19 cleanup
20 detach
21 quit
22 EOF
23
24 plog rmmod obdext2
25 plog rmmod obdclass
26
27 $OBDDIR/demos/baseclean.sh