mirror of https://github.com/jimsalterjrs/sanoid
Merge pull request #881 from phreaker0/force-delete-skip-root
prevent destroying of root dataset which leads to infinite loop
This commit is contained in:
commit
54c2dacd20
3
syncoid
3
syncoid
|
|
@ -606,7 +606,8 @@ sub syncdataset {
|
|||
}
|
||||
|
||||
if (! $bookmark) {
|
||||
if ($args{'force-delete'}) {
|
||||
# force delete is not possible for the root dataset
|
||||
if ($args{'force-delete'} && index($targetfs, '/') != -1) {
|
||||
writelog('INFO', "Removing $targetfs because no matching snapshots were found");
|
||||
|
||||
my $rcommand = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue