[pve-devel] [PATCH storage 1/2] avoid auto-vivication
Fabian Ebner
f.ebner at proxmox.com
Mon Nov 23 15:54:14 CET 2020
Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
Follow-ups for my recent patches, as discussed off list.
PVE/Storage.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 18357a8..bbbc66e 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -133,6 +133,8 @@ sub lock_storage_config {
my $convert_maxfiles_to_prune_backups = sub {
my ($scfg) = @_;
+ return if !$scfg;
+
my $maxfiles = delete $scfg->{maxfiles};
if (!defined($scfg->{'prune-backups'}) && defined($maxfiles)) {
--
2.20.1
More information about the pve-devel
mailing list