From: Fabian Ebner <f.ebner@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH storage 1/2] avoid auto-vivication
Date: Mon, 23 Nov 2020 15:54:14 +0100 [thread overview]
Message-ID: <20201123145415.16434-1-f.ebner@proxmox.com> (raw)
Signed-off-by: Fabian Ebner <f.ebner@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
next reply other threads:[~2020-11-23 14:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-23 14:54 Fabian Ebner [this message]
2020-11-23 14:54 ` [pve-devel] [PATCH manager 2/2] cleanup keep-all handling Fabian Ebner
2020-11-23 14:57 ` [pve-devel] applied: [PATCH storage 1/2] avoid auto-vivication Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201123145415.16434-1-f.ebner@proxmox.com \
--to=f.ebner@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox