Fixes: eda88c9 ("lvmplugin: add qcow2 snapshot") Signed-off-by: Fiona Ebner <f.eb...@proxmox.com> --- src/PVE/Storage/LVMPlugin.pm | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/src/PVE/Storage/LVMPlugin.pm b/src/PVE/Storage/LVMPlugin.pm index 7044c4f..6d57097 100644 --- a/src/PVE/Storage/LVMPlugin.pm +++ b/src/PVE/Storage/LVMPlugin.pm @@ -930,8 +930,12 @@ sub volume_resize { sub volume_size_info { my ($class, $scfg, $storeid, $volname, $timeout) = @_; + + my ($format) = ($class->parse_volname($volname))[6]; my $path = $class->filesystem_path($scfg, $volname); + return PVE::Storage::Plugin::file_size_info($path, $timeout, $format) if $format eq 'qcow2'; + my $cmd = [ '/sbin/lvs', '--separator', -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel