#!/bin/sh
# Utility script to test deleting a snapshot that has been previously
# created as the setup.sh script does.
+#
+# 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" = "" ] && OBDDIR=".."
. $OBDDIR/demos/config.sh
[ ! -d $MNTSNAP/lost+found ] && echo "need to run obdsetup.sh first" && exit 1
sync
sleep 1
plog log "STARTING snapdelete"
-$OBDDIR/class/obdcontrol -f << EOF
+$OBDDIR/utils/obdcontrol -f << EOF
device /dev/obd2
connect
snapdelete