vzdump: storage_info: adapt to new maxfiles backend behavior

It's automatically converted to prune-backups when using storage_config() now.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner 2020-12-01 09:24:19 +01:00 committed by Thomas Lamprecht
parent 550d8e71e6
commit e2aac8cc8c

View File

@ -86,15 +86,11 @@ sub storage_info {
my $info = { my $info = {
scfg => $scfg, scfg => $scfg,
maxfiles => $scfg->{maxfiles},
}; };
$info->{'prune-backups'} = PVE::JSONSchema::parse_property_string('prune-backups', $scfg->{'prune-backups'}) $info->{'prune-backups'} = PVE::JSONSchema::parse_property_string('prune-backups', $scfg->{'prune-backups'})
if defined($scfg->{'prune-backups'}); if defined($scfg->{'prune-backups'});
die "cannot have 'maxfiles' and 'prune-backups' configured at the same time\n"
if defined($info->{'prune-backups'}) && defined($info->{maxfiles});
if ($type eq 'pbs') { if ($type eq 'pbs') {
$info->{pbs} = 1; $info->{pbs} = 1;
} else { } else {