Whamcloud - gitweb
- osc_create was setting lmd_stripe_count to 1 instead of 0
[fs/lustre-release.git] / lustre / demos / snapdel.sh
index d6fece3..06e33a4 100755 (executable)
@@ -1,8 +1,13 @@
 #!/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
@@ -14,7 +19,7 @@ plog umount $MNTOBD
 sync
 sleep 1
 plog log "STARTING snapdelete"
-$OBDDIR/class/obdcontrol -f << EOF
+$OBDDIR/utils/obdcontrol -f << EOF
 device /dev/obd2
 connect
 snapdelete