1.4.2 - verified fix of occasional "could not delete snapshot" bug

This commit is contained in:
Jim Salter 2015-05-11 11:52:14 -04:00
parent a334fc9e15
commit 723cdb1cd3
1 changed files with 1 additions and 1 deletions

2
sanoid
View File

@ -223,7 +223,7 @@ sub prune_snapshots {
if (iszfsbusy($path)) {
print "INFO: deferring pruning of $snap - $path is currently in zfs send or receive.\n";
} else {
if (! $args{'readonly'}) { system($zfs, "destroy","-R",$snap) == 0 or die "could not remove $snap : $?"; }
if (! $args{'readonly'}) { system($zfs, "destroy",$snap) == 0 or die "could not remove $snap : $?"; }
}
}
removelock('sanoid_pruning');