Skip to content

Commit 62f5f7d

Browse files
author
Jonathan Carter
authored
Merge pull request #33 from aphor/master
zfs destroy will use -d for deferred destruction
2 parents b747698 + f2767ad commit 62f5f7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zfs-auto-snapshot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ do_snapshots () # properties, flags, snapname, oldglob, [targets...]
191191
KEEP=$(( $KEEP - 1 ))
192192
if [ "$KEEP" -le '0' ]
193193
then
194-
if do_run "zfs destroy $FLAGS '$jj'"
194+
if do_run "zfs destroy -d $FLAGS '$jj'"
195195
then
196196
DESTRUCTION_COUNT=$(( $DESTRUCTION_COUNT + 1 ))
197197
else

0 commit comments

Comments
 (0)