[pve-devel] applied: [PATCH storage] content-dirs check: silently skip paths that cannot be resolved
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Jun 15 14:19:53 CEST 2023
Am 15/06/2023 um 13:36 schrieb Friedrich Weber:
> 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 at proxmox.com>
> ---
> src/PVE/Storage/Plugin.pm | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
>
applied, thanks!
More information about the pve-devel
mailing list