[PATCH FOLLOW-UP storage 05/10] lvmplugin: snapshot: use relative path for backing image
Alexandre Derumier
alexandre.derumier at groupe-cyllene.com
Tue Jul 15 07:26:38 CEST 2025
Signed-off-by: Alexandre Derumier <alexandre.derumier at groupe-cyllene.com>
---
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);
}
--
2.39.5
More information about the pve-devel
mailing list