2 # Utility script to test deleting a snapshot that has been previously
3 # created as the setup.sh script does.
5 # Copyright (C) 2001 Cluster File Systems, Inc.
7 # This code is issued under the GNU General Public License.
8 # See the file COPYING in this distribution
10 OBDDIR="`dirname $0`/.."
11 . $OBDDIR/demos/config.sh
13 [ ! -d $MNTSNAP/lost+found ] && echo "need to run obdsetup.sh first" && exit 1
14 [ ! -f $MNTOBD/hosts ] && $OBDDIR/demos/snaptest.sh
21 plog log "STARTING snapdelete"
22 $OBDDIR/utils/obdcontrol -f << EOF
37 plog log "COMPLETE snapdelete"
38 plog mount -t obdfs -odevice=/dev/obd1 none $MNTOBD