mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-06-01 01:20:58 +03:00
removed soon to be depricated -D option
This commit is contained in:
parent
1ffd9a15a3
commit
58e098324e
@ -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)
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user