From de0cd0c2e09283c775459ca99017f31b5e23a80e Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 17 Jun 2019 12:35:51 +0200 Subject: [PATCH] partially revert follow up see https://pve.proxmox.com/pipermail/pve-devel/2019-June/037575.html Signed-off-by: Thomas Lamprecht --- PVE/Storage/Plugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm index b565e92..842b4d2 100644 --- a/PVE/Storage/Plugin.pm +++ b/PVE/Storage/Plugin.pm @@ -689,7 +689,7 @@ sub free_image { if (defined($format) && ($format eq 'subvol')) { File::Path::remove_tree($path); } else { - if (! -e $path) { + if (!(-f $path || -l $path)) { warn "disk image '$path' does not exists\n"; return undef; } -- 2.39.2