Re: [Qemu-devel] [PATCH v6 07/10] qmp: Add support of dirty-bitmap sync mode for drive-backup

2014-11-12 Thread Vladimir Sementsov-Ogievskiy
@@ -317,7 +321,21 @@ static void coroutine_fn backup_run(void *opaque) if (alloced == 0) { continue; } +} else if (job-sync_mode == MIRROR_SYNC_MODE_DIRTY_BITMAP) { +int i, dirty = 0; +for (i =

Re: [Qemu-devel] [PATCH v6 07/10] qmp: Add support of dirty-bitmap sync mode for drive-backup

2014-11-04 Thread Max Reitz
On 2014-10-30 at 04:22, Fam Zheng wrote: For dirty-bitmap sync mode, the block job will iterate through the given dirty bitmap to decide if a sector needs backup (backup all the dirty clusters and skip clean ones), just as allocation conditions of top sync mode. There are two bitmap use modes