Merge pull request #33 from aphor/master

zfs destroy will use -d for deferred destruction
This commit is contained in:
Jonathan Carter 2017-01-27 20:28:01 +02:00 committed by GitHub
commit 62f5f7d920

View File

@ -191,7 +191,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
KEEP=$(( $KEEP - 1 ))
if [ "$KEEP" -le '0' ]
then
if do_run "zfs destroy $FLAGS '$jj'"
if do_run "zfs destroy -d $FLAGS '$jj'"
then
DESTRUCTION_COUNT=$(( $DESTRUCTION_COUNT + 1 ))
else