]> git.proxmox.com Git - pve-storage.git/commit
content-dirs check: silently skip paths that cannot be resolved
authorFriedrich Weber <f.weber@proxmox.com>
Thu, 15 Jun 2023 11:36:58 +0000 (13:36 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Jun 2023 12:19:33 +0000 (14:19 +0200)
commit09f1f847ae5890d0b0ea351890c364a6de6b2780
treef1ef6ca629e49731c62fc72e40b16cf6705b53d0
parent46b9c1fe319f6d468ad5ebf66ec8d9daadd3dca2
content-dirs check: silently skip paths that cannot be resolved

Since commit 8e623a2930f7aee4b3309b1f297613a250ee4698, the inequality
check for content-dirs prints a warning if a content directory path
could not be resolved, i.e., if `abs_path` returns undef. Among other
things, `abs_path` returns undef if the path has an inner (= any but
last) component that does not exist. This can happen for a storage
with content type `iso,vztmpl` and `create-subdirs` set to 0, in case
`template/` does not exist. In this case, the warnings printed by
pvestatd are quite noisy.

As missing content directories are not a problem per se, remove the
warning and just ignore the directory during the inequality check.

Signed-off-by: Friedrich Weber <f.weber@proxmox.com>
src/PVE/Storage/Plugin.pm