]> git.proxmox.com Git - pve-guest-common.git/commitdiff
Fix: #2124 add zstd support
authorAlwin Antreich <a.antreich@proxmox.com>
Tue, 28 Apr 2020 13:58:11 +0000 (15:58 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 4 May 2020 12:08:16 +0000 (14:08 +0200)
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
PVE/VZDump/Common.pm

index 4789a50dfc2cd89d961aaa9edc3915a939e6e926..909e3afc1dff9fa6723adc5b25bfa3abd333a08b 100644 (file)
@@ -88,7 +88,7 @@ my $confdesc = {
        type => 'string',
        description => "Compress dump file.",
        optional => 1,
-       enum => ['0', '1', 'gzip', 'lzo'],
+       enum => ['0', '1', 'gzip', 'lzo', 'zstd'],
        default => '0',
     },
     pigz=> {
@@ -98,6 +98,13 @@ my $confdesc = {
        optional => 1,
        default => 0,
     },
+    zstd => {
+       type => "integer",
+       description => "Zstd threads. N=0 uses half of the available cores,".
+           " N>0 uses N as thread count.",
+       optional => 1,
+       default => 1,
+    },
     quiet => {
        type => 'boolean',
        description => "Be quiet.",