[pve-devel] [PATCH guest-common v3] Fix: #2124 add zstd support

Fabian Ebner f.ebner at proxmox.com
Thu Apr 9 14:20:06 CEST 2020


On 08.04.20 12:25, Alwin Antreich wrote:
> Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
> ---
>   PVE/VZDump/Common.pm | 9 ++++++++-
>   1 file changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/PVE/VZDump/Common.pm b/PVE/VZDump/Common.pm
> index 4789a50..9a7c4f6 100644
> --- a/PVE/VZDump/Common.pm
> +++ b/PVE/VZDump/Common.pm
> @@ -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 => "Use zstd with N>0.".
> +	    " N=0 uses half of cores, N>1 uses N as thread count.",

The description is wrong: N>0 is not required and in the second line it 
should be N>0 or N>=1 instead of N>1.

> +	optional => 1,
> +	default => 1,
> +    },
>       quiet => {
>   	type => 'boolean',
>   	description => "Be quiet.",
> 




More information about the pve-devel mailing list