mirror of https://github.com/jimsalterjrs/sanoid
prevent destroying of root dataset which leads to infinite loop because it can't be destroyed
This commit is contained in:
parent
61000c9da2
commit
48d89c785e
3
syncoid
3
syncoid
|
|
@ -678,7 +678,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) {
|
||||
if (!$quiet) { print "Removing $targetfs because no matching snapshots were found\n"; }
|
||||
|
||||
my $rcommand = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue