]> git.proxmox.com Git - pve-storage.git/commitdiff
content dirs: skip creation if either mkdir or create-subdirs is false
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Jun 2023 11:57:14 +0000 (13:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Jun 2023 11:57:17 +0000 (13:57 +0200)
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 <t.lamprecht@proxmox.com>
src/PVE/Storage/Plugin.pm

index 4ab1282bb7f0449df29c9fc07b88648d6c80a69e..ab6b6759a9ef88d8f45209fe09d89f1b5c78bd30 100644 (file)
@@ -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