diff --git a/PVE/Storage.pm b/PVE/Storage.pm index 3aa2100..e109c02 100755 --- a/PVE/Storage.pm +++ b/PVE/Storage.pm @@ -125,7 +125,7 @@ sub lock_storage_config { } } -# FIXME remove maxfiles for PVE 7.0 +# FIXME remove maxfiles for PVE 8.0 or PVE 9.0 my $convert_maxfiles_to_prune_backups = sub { my ($scfg) = @_; diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index 318d13a..f0c15d5 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -133,7 +133,8 @@ my $defaultData = { optional => 1, }, maxfiles => { - description => "Maximal number of backup files per VM. Use '0' for unlimted.", + description => "Deprecated: use 'prune-backups' instead. " . + "Maximal number of backup files per VM. Use '0' for unlimted.", type => 'integer', minimum => 0, optional => 1, @@ -402,7 +403,7 @@ sub parse_config { type => 'dir', priority => 0, # force first entry path => '/var/lib/vz', - maxfiles => 0, + 'prune-backups' => 'keep-all=1', content => { images => 1, rootdir => 1, vztmpl => 1, iso => 1, snippets => 1}, }; }