Whamcloud - gitweb
a001c5ecbdc57ca1fa20df38e89b9d560e4dd2ab
[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 device /dev/obd0
13 cleanup
14 detach
15 quit
16 EOF
17
18 plog rmmod obdext2
19 plog rmmod obdclass
20
21 $OBDDIR/demos/baseclean.sh