Re: [Qemu-devel] [Patch v12 resend 08/10] Implement new driver for block replication

2016-01-26 Thread Stefan Hajnoczi
On Mon, Jan 04, 2016 at 01:50:40PM +0800, Wen Congyang wrote: > On 12/23/2015 05:47 PM, Stefan Hajnoczi wrote: > > On Wed, Dec 02, 2015 at 01:37:25PM +0800, Wen Congyang wrote: > >> +/* > >> + * Only write to active disk if the sectors have > >> + * already been allocated in active

Re: [Qemu-devel] [Patch v12 resend 08/10] Implement new driver for block replication

2016-01-03 Thread Stefan Hajnoczi
On Wed, Dec 02, 2015 at 01:37:25PM +0800, Wen Congyang wrote: > +/* > + * Only write to active disk if the sectors have > + * already been allocated in active disk/hidden disk. > + */ > +qemu_iovec_init(_qiov, qiov->niov); > +while (remaining_sectors > 0) { > +ret =

Re: [Qemu-devel] [Patch v12 resend 08/10] Implement new driver for block replication

2016-01-03 Thread Wen Congyang
On 12/23/2015 05:47 PM, Stefan Hajnoczi wrote: > On Wed, Dec 02, 2015 at 01:37:25PM +0800, Wen Congyang wrote: >> +/* >> + * Only write to active disk if the sectors have >> + * already been allocated in active disk/hidden disk. >> + */ >> +qemu_iovec_init(_qiov, qiov->niov);

[Qemu-devel] [Patch v12 resend 08/10] Implement new driver for block replication

2015-12-01 Thread Wen Congyang
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei --- block/Makefile.objs | 1 + block/replication.c | 549 2 files changed, 550