Re: [Qemu-block] [PATCH 06/21] backup: rewrite top mode cluster skipping

2017-01-31 Thread Stefan Hajnoczi
On Fri, Dec 23, 2016 at 05:28:49PM +0300, Vladimir Sementsov-Ogievskiy wrote: > @@ -374,6 +379,101 @@ static bool coroutine_fn yield_and_check(BackupBlockJob > *job) > return false; > } > > +static void backup_skip_clusters(BackupBlockJob *job, > + int64_t

[Qemu-block] [PATCH 06/21] backup: rewrite top mode cluster skipping

2016-12-23 Thread Vladimir Sementsov-Ogievskiy
TOP backup mode skips not allocated clusters. This patch mark skipped clusters in copy_bitmap to prevent their writing in write notifier (however, they may be written before skipping, but that is not critical). Also, update job->common.offset appropriately, to come eventually to job->common.len.