]> git.proxmox.com Git - pve-manager.git/commitdiff
vzdump: storage_info: adapt to new maxfiles backend behavior
authorFabian Ebner <f.ebner@proxmox.com>
Tue, 1 Dec 2020 08:24:19 +0000 (09:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 2 Dec 2020 12:15:52 +0000 (13:15 +0100)
It's automatically converted to prune-backups when using storage_config() now.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
PVE/VZDump.pm

index c37fa513575e519e4f095974b47e6229bb3285ce..94aa76ab7cd1a805f6b050b464d0d7d3ad46a32f 100644 (file)
@@ -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 {