[pve-devel] [PATCH manager v3 13/22] vzdump: handle new 'fleecing' property string

Fiona Ebner f.ebner at proxmox.com
Mon Apr 22 10:15:41 CEST 2024


Am 11.04.24 um 11:29 schrieb Fiona Ebner:
> @@ -282,6 +293,7 @@ sub read_vzdump_defaults {
>  	} keys %$confdesc_for_defaults
>      };
>      $parse_prune_backups_maxfiles->($defaults, "defaults in VZDump schema");
> +    parse_fleecing($defaults);
>      parse_performance($defaults);
>  
>      my $raw;
Forgot to mention there was a merge conflict here, because of 693b10f2
("vzdump: actually honor schema defaults for performance"). To avoid the
same issue with the fleecing property string, the hunk above was changed
in the same fashion to:

> @@ -299,6 +310,13 @@ sub read_vzdump_defaults {
>             defined($default) ? ($_ => $default) : ()
>         } keys $performance_fmt->%*
>      };
> +    my $fleecing_fmt = PVE::JSONSchema::get_format('backup-fleecing');
> +    $defaults->{fleecing} = {
> +       map {
> +           my $default = $fleecing_fmt->{$_}->{default};
> +           defined($default) ? ($_ => $default) : ()
> +       } keys $fleecing_fmt->%*
> +    };
>      $parse_prune_backups_maxfiles->($defaults, "defaults in VZDump schema");
>  
>      my $raw;





More information about the pve-devel mailing list