From 67daf6921b8bcc9b26a14432e3f61acb79a30eb4 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 15 Apr 2021 17:52:52 +0200 Subject: [PATCH] drive mirror: stop logging progress for a disk after it got ready If, why ever, got "not-ready" again we'd log again the next round. Improves the behavior for multiple disks, especially on migration where we mirrored the local disks one by one, but kept reporting on prev. ones. Signed-off-by: Thomas Lamprecht --- PVE/QemuServer.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 14672546..673b8538 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -7100,7 +7100,8 @@ sub qemu_drive_mirror_monitor { $status .= ", ready"; } } - print "$job_id: $status\n"; + print "$job_id: $status\n" if !$jobs->{$job_id}->{ready}; + $jobs->{$job_id}->{ready} = $ready; } $readycounter++ if $job->{ready}; -- 2.39.5