removed soon to be depricated -D option

This commit is contained in:
Edwin Eefting 2020-05-27 21:32:27 +02:00
parent 1ffd9a15a3
commit 58e098324e
2 changed files with 3 additions and 2 deletions

View File

@ -931,6 +931,7 @@ class ZfsDataset():
cmd.append("-c") # use compressed WRITE records
#NOTE: performance is usually worse with this option, according to manual
#also -D will be depricated in newer ZFS versions
# if not resume:
# if "-D" in self.zfs_node.supported_send_options:
# cmd.append("-D") # dedupped stream, sends less duplicate data
@ -1351,7 +1352,7 @@ class ZfsNode(ExecuteNode):
#not every zfs implementation supports them all
ret=[]
for option in ["-L", "-e", "-c" , "-D" ]:
for option in ["-L", "-e", "-c" ]:
if self.valid_command(["zfs","send", option, "zfs_autobackup_option_test"]):
ret.append(option)
return(ret)

View File

@ -107,7 +107,7 @@ test_target1
description="[Source]"
node=ZfsNode("test", logger, description=description)
# -D propably always supported
self.assertIn("-D", node.supported_send_options)
self.assertGreater(len(node.supported_send_options),0)
def test_supportedrecvoptions(self):