Whamcloud - gitweb
class/obdcontrol: added "basedev" parameter to the attach command
[fs/lustre-release.git] / lustre / demos / obdclean.sh
1 #!/bin/sh
2 # Utility script for cleaning up a simple OBDFS mounted filesystem
3 OBDDIR="`dirname $0`/.."
4 [ "$OBDDIR" = "" ] && OBDDIR=".."
5 . $OBDDIR/demos/config.sh
6
7 umount $MNTOBD
8 rmmod obdfs
9
10 $OBDDIR/class/obdcontrol -f << EOF
11 cleanup
12 detach
13 quit
14 EOF
15
16 rmmod obdext2
17 rmmod obdclass
18
19 $OBDDIR/demos/baseclean.sh