[PATCH qemu-server 1/3] api: disk reassign: use target disk key and 'reassign' in log message

Fiona Ebner
2026-04-01T09:52:26Z

The target disk key is useful information. The word 'reassign' matches
how the operation is called in the UI and better distinguishes it from
the disk move between storages.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
---
src/PVE/API2/Qemu.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/PVE/API2/Qemu.pm b/src/PVE/API2/Qemu.pm
index 020c68b2..09f88ae1 100644
--- a/src/PVE/API2/Qemu.pm
+++ b/src/PVE/API2/Qemu.pm
@@ -4987,7 +4987,8 @@ __PACKAGE__->register_method({

my $source_volid = $drive->{file};

- print "moving disk '$disk' from VM '$vmid' to '$target_vmid'\n";
+ print("reassign disk '$disk' from VM '$vmid' as '$target_disk' to"
+ . " VM '$target_vmid'\n");
my ($storeid, $source_volname) =
PVE::Storage::parse_volume_id($source_volid);

--
2.47.3