From 44b4e42552f8d85cf5c003c5375597fcac554969 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Wed, 16 Jul 2025 08:31:47 +0200 Subject: [PATCH] lvmplugin: snapshot: use relative path for backing image Signed-off-by: Alexandre Derumier --- src/PVE/Storage/LVMPlugin.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PVE/Storage/LVMPlugin.pm b/src/PVE/Storage/LVMPlugin.pm index cb5fd37..9aadbc2 100644 --- a/src/PVE/Storage/LVMPlugin.pm +++ b/src/PVE/Storage/LVMPlugin.pm @@ -583,8 +583,8 @@ my sub lvm_qcow2_format { preallocation => PVE::Storage::Plugin::preallocation_cmd_opt($scfg, $fmt), }; if ($backing_snap) { - my $backing_path = $class->path($scfg, $name, $storeid, $backing_snap); - PVE::Storage::Common::qemu_img_create_qcow2_backed($path, $backing_path, $fmt, $options); + my $backing_volname = get_snap_name($class, $name, $backing_snap); + PVE::Storage::Common::qemu_img_create_qcow2_backed($path, $backing_volname, $fmt, $options); } else { PVE::Storage::Common::qemu_img_create($fmt, $size, $path, $options); }