2 # Utility script to test deleting a snapshot that has been previously
3 # created as the setup.sh script does.
4 OBDDIR="`dirname $0`/.."
5 [ "$OBDDIR" = "" ] && OBDDIR=".."
6 . $OBDDIR/demos/config.sh
8 [ ! -d $MNTSNAP/lost+found ] && echo "need to run obdsetup.sh first" && exit 1
14 plog log "STARTING snapdelete"
15 $OBDDIR/class/obdcontrol -f << EOF
30 plog log "COMPLETE snapdelete"
31 plog mount -t obdfs -odevice=/dev/obd1 /dev/obd1 $MNTOBD