X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FAPI2%2FStorage%2FContent.pm;h=e885b38afa2b1aad19a88a343ee24d9be56c6e3f;hb=a18f77407917207ca13043effe17eed3de9b1916;hp=ac784bd19f5507c4945ad58a86ed46c89386069a;hpb=3cf5e19edc5383a2170b4d9c2406bc3ffd80fe85;p=pve-storage.git diff --git a/PVE/API2/Storage/Content.pm b/PVE/API2/Storage/Content.pm index ac784bd..e885b38 100644 --- a/PVE/API2/Storage/Content.pm +++ b/PVE/API2/Storage/Content.pm @@ -233,13 +233,15 @@ __PACKAGE__->register_method ({ $rpcenv->check_volume_access($authuser, $cfg, undef, $volid); my $path = PVE::Storage::path($cfg, $volid); - my ($size, $format, $used) = PVE::Storage::file_size_info ($path); + my ($size, $format, $used, $parent) = PVE::Storage::file_size_info($path); + die "file_size_info on '$volid' failed\n" if !($format && $size); # fixme: return more attributes? return { path => $path, size => $size, used => $used, + format => $format, }; }});