Whamcloud - gitweb
obdsyncd: removed from CVS
[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 plog killall pupd       # stop the OBDFS flush daemon
8 rmmod obdfs
9
10 plog log "CLEANUP/DETACH"
11 $OBDDIR/class/obdcontrol -f << EOF
12 cleanup
13 detach
14 quit
15 EOF
16
17 rmmod obdext2
18 rmmod obdclass
19
20 $OBDDIR/demos/baseclean.sh