mirror of
https://github.com/psy0rz/zfs_autobackup.git
synced 2025-06-17 02:30: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
|
cmd.append("-c") # use compressed WRITE records
|
||||||
|
|
||||||
#NOTE: performance is usually worse with this option, according to manual
|
#NOTE: performance is usually worse with this option, according to manual
|
||||||
|
#also -D will be depricated in newer ZFS versions
|
||||||
# if not resume:
|
# if not resume:
|
||||||
# if "-D" in self.zfs_node.supported_send_options:
|
# if "-D" in self.zfs_node.supported_send_options:
|
||||||
# cmd.append("-D") # dedupped stream, sends less duplicate data
|
# cmd.append("-D") # dedupped stream, sends less duplicate data
|
||||||
@ -1351,7 +1352,7 @@ class ZfsNode(ExecuteNode):
|
|||||||
#not every zfs implementation supports them all
|
#not every zfs implementation supports them all
|
||||||
|
|
||||||
ret=[]
|
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"]):
|
if self.valid_command(["zfs","send", option, "zfs_autobackup_option_test"]):
|
||||||
ret.append(option)
|
ret.append(option)
|
||||||
return(ret)
|
return(ret)
|
||||||
|
@ -107,7 +107,7 @@ test_target1
|
|||||||
description="[Source]"
|
description="[Source]"
|
||||||
node=ZfsNode("test", logger, description=description)
|
node=ZfsNode("test", logger, description=description)
|
||||||
# -D propably always supported
|
# -D propably always supported
|
||||||
self.assertIn("-D", node.supported_send_options)
|
self.assertGreater(len(node.supported_send_options),0)
|
||||||
|
|
||||||
|
|
||||||
def test_supportedrecvoptions(self):
|
def test_supportedrecvoptions(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user