forked from extern/zfs-auto-snapshot
We shouldn't try to validate "##" on running the start method
This commit is contained in:
parent
ceca0c240d
commit
3bd3e3136f
@ -135,11 +135,17 @@ function schedule_snapshots {
|
||||
# for now, we're forcing the offset to be 0 seconds.
|
||||
typeset OFFSET=0
|
||||
|
||||
if [ "$FILESYS" != "//" ] ; then
|
||||
case $FILESYS in
|
||||
"//")
|
||||
;;
|
||||
"##" )
|
||||
;;
|
||||
*)
|
||||
# validate the filesystem
|
||||
zfs list $FILESYS 2>&1 1> /dev/null
|
||||
zfs list $FILESYS 2>&1 > /dev/null
|
||||
check_failure $? "ZFS filesystem does not exist!"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
# remove anything that's there at the moment
|
||||
unschedule_snapshots $FMRI
|
||||
|
Loading…
Reference in New Issue
Block a user