]> git.proxmox.com Git - qemu-server.git/commitdiff
drive mirror: stop logging progress for a disk after it got ready
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Apr 2021 15:52:52 +0000 (17:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 15 Apr 2021 15:52:54 +0000 (17:52 +0200)
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 <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 1467254663c87f35430e008ea232764894a2a881..673b85388731bc755b6d5d7f92bb2828c0d66ae3 100644 (file)
@@ -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};