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 disk
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(&hd_qiov, qiov->niov);
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(&hd_qiov, qiov->niov);
> +while (remaining_sectors > 0) {
> +ret
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 insertions(+)
create mode 100644 block/replication.c
diff --git a/block/Makefil