[pve-devel] [PATCH qemu-server 02/10] add vtype parameter to rename_volume call

Wolfgang Bumiller
2025-07-29T11:15:51Z

src/PVE/API2/Qemu.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
index a3f967f3..76883a5b 100644
--- a/src/PVE/API2/Qemu.pm
+++ b/src/PVE/API2/Qemu.pm
@@ -4904,7 +4904,7 @@ __PACKAGE__->register_method({
(PVE::Storage::parse_volname($storecfg, $source_volid))[6];

my $new_volid = PVE::Storage::rename_volume(
- $storecfg, $source_volid, $target_vmid,
+ $storecfg, $source_volid, $target_vmid, undef, 'vm-vol',
);