[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/8] block/backup: issue progress updates for skippe
[Qemu-devel] [PATCH 6/8] block/backup: issue progress updates for skipped regions
Tue, 9 Jul 2019 21:05:54 -0400
The way bitmap backups work is by starting at 75% if it needs
to copy just 25% of the disk.
The way sync=top currently works, however, is to start at 0% and then
never update the progress if it doesn't copy a region. If it needs to
copy 25% of the disk, we'll finish at 25%.
Update the progress when we skip regions.
Signed-off-by: John Snow <address@hidden>
block/backup.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/backup.c b/block/backup.c
index a64b768e24..38c4a688c6 100644
@@ -417,6 +417,7 @@ static int coroutine_fn backup_loop(BackupBlockJob *job)
if (job->sync_mode == MIRROR_SYNC_MODE_TOP &&
bdrv_is_unallocated_range(bs, offset, job->cluster_size))
+ job_progress_update(&job->common.job, job->cluster_size);
[Qemu-devel] [PATCH 6/8] block/backup: issue progress updates for skipped regions,
John Snow <=
[Qemu-devel] [PATCH 5/8] iotests/257: test API failures, John Snow, 2019/07/09
[Qemu-devel] [PATCH 3/8] iotests/257: Refactor backup helpers, John Snow, 2019/07/09