From 030e5ad55028798a320461ff6fc7ec5d1321ef63 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 9 Jun 2023 13:57:14 +0200 Subject: [PATCH] content dirs: skip creation if either mkdir or create-subdirs is false This is slightly confusing due to both options, the legacy convoluted one and the new targeted one, exist, but before the rework we skip if either of those sub-expressions was true, so doing it needs both to be true. Signed-off-by: Thomas Lamprecht --- src/PVE/Storage/Plugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/Storage/Plugin.pm b/src/PVE/Storage/Plugin.pm index 4ab1282..ab6b675 100644 --- a/src/PVE/Storage/Plugin.pm +++ b/src/PVE/Storage/Plugin.pm @@ -1377,7 +1377,7 @@ sub activate_storage { if ( (!defined($scfg->{'create-subdirs'}) || $scfg->{'create-subdirs'}) # FIXME The mkdir option is deprecated. Remove with PVE 9? - || (!defined($scfg->{mkdir}) || $scfg->{mkdir}) + && (!defined($scfg->{mkdir}) || $scfg->{mkdir}) ) { for my $vtype (sort keys %$vtype_subdirs) { # OpenVZMigrate uses backup (dump) dir