We shouldn't try to validate "##" on running the start method

This commit is contained in:
Tim Foster 2008-08-09 19:28:26 +01:00
parent ceca0c240d
commit 3bd3e3136f

View File

@ -135,11 +135,17 @@ function schedule_snapshots {
# for now, we're forcing the offset to be 0 seconds. # for now, we're forcing the offset to be 0 seconds.
typeset OFFSET=0 typeset OFFSET=0
if [ "$FILESYS" != "//" ] ; then case $FILESYS in
# validate the filesystem "//")
zfs list $FILESYS 2>&1 1> /dev/null ;;
check_failure $? "ZFS filesystem does not exist!" "##" )
fi ;;
*)
# validate the filesystem
zfs list $FILESYS 2>&1 > /dev/null
check_failure $? "ZFS filesystem does not exist!"
;;
esac
# remove anything that's there at the moment # remove anything that's there at the moment
unschedule_snapshots $FMRI unschedule_snapshots $FMRI