mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 07:06:14 +00:00
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:
parent
550d8e71e6
commit
e2aac8cc8c
@ -86,15 +86,11 @@ sub storage_info {
|
||||
|
||||
my $info = {
|
||||
scfg => $scfg,
|
||||
maxfiles => $scfg->{maxfiles},
|
||||
};
|
||||
|
||||
$info->{'prune-backups'} = PVE::JSONSchema::parse_property_string('prune-backups', $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') {
|
||||
$info->{pbs} = 1;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user