more tests

This commit is contained in:
Edwin Eefting
2020-05-30 13:45:23 +02:00
parent ff33f46cb8
commit 37a9f49d8d
2 changed files with 54 additions and 1 deletions

View File

@ -1707,7 +1707,8 @@ class ZfsAutobackup:
target_datasets.append(target_dataset)
#ensure parents exists
if not self.args.no_send and not target_dataset.parent.exists:
#TODO: this isnt perfect yet, in some cases it can create parents when it shouldn't.
if not self.args.no_send and not target_dataset.parent in target_datasets and not target_dataset.parent.exists:
target_dataset.parent.create_filesystem(parents=True)
#determine common zpool features