mirror of https://github.com/jimsalterjrs/sanoid
Merge pull request #916 from 0xFelix/zstdmt
syncoid: Add zstdmt compress options
This commit is contained in:
commit
b31ed6e325
16
syncoid
16
syncoid
|
|
@ -1147,12 +1147,24 @@ sub compressargset {
|
||||||
decomrawcmd => 'zstd',
|
decomrawcmd => 'zstd',
|
||||||
decomargs => '-dc',
|
decomargs => '-dc',
|
||||||
},
|
},
|
||||||
|
'zstdmt-fast' => {
|
||||||
|
rawcmd => 'zstdmt',
|
||||||
|
args => '-3',
|
||||||
|
decomrawcmd => 'zstdmt',
|
||||||
|
decomargs => '-dc',
|
||||||
|
},
|
||||||
'zstd-slow' => {
|
'zstd-slow' => {
|
||||||
rawcmd => 'zstd',
|
rawcmd => 'zstd',
|
||||||
args => '-19',
|
args => '-19',
|
||||||
decomrawcmd => 'zstd',
|
decomrawcmd => 'zstd',
|
||||||
decomargs => '-dc',
|
decomargs => '-dc',
|
||||||
},
|
},
|
||||||
|
'zstdmt-slow' => {
|
||||||
|
rawcmd => 'zstdmt',
|
||||||
|
args => '-19',
|
||||||
|
decomrawcmd => 'zstdmt',
|
||||||
|
decomargs => '-dc',
|
||||||
|
},
|
||||||
'xz' => {
|
'xz' => {
|
||||||
rawcmd => 'xz',
|
rawcmd => 'xz',
|
||||||
args => '',
|
args => '',
|
||||||
|
|
@ -1175,7 +1187,7 @@ sub compressargset {
|
||||||
|
|
||||||
if ($value eq 'default') {
|
if ($value eq 'default') {
|
||||||
$value = $DEFAULT_COMPRESSION;
|
$value = $DEFAULT_COMPRESSION;
|
||||||
} elsif (!(grep $value eq $_, ('gzip', 'pigz-fast', 'pigz-slow', 'zstd-fast', 'zstd-slow', 'lz4', 'xz', 'lzo', 'default', 'none'))) {
|
} elsif (!(grep $value eq $_, ('gzip', 'pigz-fast', 'pigz-slow', 'zstd-fast', 'zstdmt-fast', 'zstd-slow', 'zstdmt-slow', 'lz4', 'xz', 'lzo', 'default', 'none'))) {
|
||||||
writelog('WARN', "Unrecognised compression value $value, defaulting to $DEFAULT_COMPRESSION");
|
writelog('WARN', "Unrecognised compression value $value, defaulting to $DEFAULT_COMPRESSION");
|
||||||
$value = $DEFAULT_COMPRESSION;
|
$value = $DEFAULT_COMPRESSION;
|
||||||
}
|
}
|
||||||
|
|
@ -2308,7 +2320,7 @@ syncoid - ZFS snapshot replication tool
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
--compress=FORMAT Compresses data during transfer. Currently accepted options are gzip, pigz-fast, pigz-slow, zstd-fast, zstd-slow, lz4, xz, lzo (default) & none
|
--compress=FORMAT Compresses data during transfer. Currently accepted options are gzip, pigz-fast, pigz-slow, zstd-fast, zstdmt-fast, zstd-slow, zstdmt-slow, lz4, xz, lzo (default) & none
|
||||||
--identifier=EXTRA Extra identifier which is included in the snapshot name. Can be used for replicating to multiple targets.
|
--identifier=EXTRA Extra identifier which is included in the snapshot name. Can be used for replicating to multiple targets.
|
||||||
--recursive|r Also transfers child datasets
|
--recursive|r Also transfers child datasets
|
||||||
--skip-parent Skips syncing of the parent dataset. Does nothing without '--recursive' option.
|
--skip-parent Skips syncing of the parent dataset. Does nothing without '--recursive' option.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue