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 <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-04-15 17:52:52 +02:00
parent b5e9d97bdf
commit 67daf6921b

View 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};