[pve-devel] [PATCH storage 2/2] warn if filesize info couldn't be read due to error
Tim Marx
t.marx at proxmox.com
Mon Sep 9 12:56:04 CEST 2019
This sh
Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
PVE/Storage/Plugin.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/PVE/Storage/Plugin.pm b/PVE/Storage/Plugin.pm
index ed71fe4..6b79e7a 100644
--- a/PVE/Storage/Plugin.pm
+++ b/PVE/Storage/Plugin.pm
@@ -742,6 +742,8 @@ sub file_size_info {
});
};
+ warn $@ if $@;
+
return wantarray ? ($size, $format, $used, $parent) : $size;
}
--
2.20.1
More information about the pve-devel
mailing list