[pve-devel] superseded: [PATCH storage 1/2] lvm plugin: properly handle qcow2 format when querying volume size info
Fiona Ebner
f.ebner at proxmox.com
Fri Jul 18 12:21:50 CEST 2025
Sorry, for the noise. I sent a v2 with better meta info:
https://lore.proxmox.com/pve-devel/20250718102023.70591-1-f.ebner@proxmox.com/T/#u
Am 18.07.25 um 12:12 PM schrieb Fiona Ebner:
> Fixes: eda88c9 ("lvmplugin: add qcow2 snapshot")
> Signed-off-by: Fiona Ebner <f.ebner at 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',
More information about the pve-devel
mailing list