Whamcloud - gitweb
Fix a few compiler warnings.
[fs/lustre-release.git] / lustre / demos / obdfsclean.sh
index a001c5e..c0fa384 100755 (executable)
@@ -1,5 +1,11 @@
 #!/bin/sh
 # Utility script for cleaning up a simple OBDFS mounted filesystem
+#
+# Copyright (C) 2001  Cluster File Systems, Inc.
+#
+# This code is issued under the GNU General Public License.
+# See the file COPYING in this distribution
+
 OBDDIR="`dirname $0`/.."
 . $OBDDIR/demos/config.sh
 
@@ -8,13 +14,17 @@ plog umount $MNTOBD
 plog rmmod obdfs
 
 plog log "CLEANUP/DETACH"
-$OBDDIR/class/obdcontrol -f << EOF
-device /dev/obd0
+$OBDDIR/utils/obdctl << EOF
+device 0
 cleanup
 detach
 quit
 EOF
 
+plog rmmod xfs
+plog rmmod xfs_support
+plog rmmod pagebuf
+plog rmmod obdfilter
 plog rmmod obdext2
 plog rmmod obdclass