Whamcloud - gitweb
obdfs,ext2_obd,class/*.c: added truncate/punch method/ioctl
[fs/lustre-release.git] / lustre / demos / obdfsclean.sh
1 #!/bin/sh
2 # Utility script for cleaning up a simple OBDFS mounted filesystem
3 OBDDIR="`dirname $0`/.."
4 . $OBDDIR/demos/config.sh
5
6 plog umount $MNTOBD
7 #killall pupdated       # stop the OBDFS flush daemon
8 plog rmmod obdfs
9
10 plog log "CLEANUP/DETACH"
11 $OBDDIR/class/obdcontrol -f << EOF
12 cleanup
13 detach
14 quit
15 EOF
16
17 plog rmmod obdext2
18 plog rmmod obdclass
19
20 $OBDDIR/demos/baseclean.sh