]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/Plugin.pm
file_size_info: handle dangling symlinks
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 2 Oct 2020 11:55:15 +0000 (13:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 5 Oct 2020 10:51:44 +0000 (12:51 +0200)
commitd1f4700063c527d787b21b68983f9b1f25b3c4fa
treebec96f2aad239817b3cf1c2f99ec5b4e580368dd
parentc018887fd3a2a241f72ee232b6acd264b21d0469
file_size_info: handle dangling symlinks

and other stat failure modes.

this method returns undef if 'qemu-img info ...' fails to return
information, so callers must handle this already.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
PVE/Storage/Plugin.pm