#!/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
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