Re: [Qemu-block] [PATCH v7 2/8] qmp: Add optional bool unmap to drive-mirror

2015-06-08 Thread Paolo Bonzini
On 08/06/2015 16:51, Eric Blake wrote: +# @unmap: #optional Whether to try to unmap target sectors where source has +# only zero. If true, and target unallocated sectors will read as zero, +# target image sectors will be unmapped; otherwise, zeroes will be +#

Re: [Qemu-block] [PATCH v7 2/8] qmp: Add optional bool unmap to drive-mirror

2015-06-08 Thread Eric Blake
On 06/07/2015 11:56 PM, Fam Zheng wrote: If specified as true, it allows discarding on target sectors where source is not allocated. Signed-off-by: Fam Zheng f...@redhat.com --- block/mirror.c| 8 ++-- blockdev.c| 5 + hmp.c | 2 +-

[Qemu-block] [PATCH v7 2/8] qmp: Add optional bool unmap to drive-mirror

2015-06-07 Thread Fam Zheng
If specified as true, it allows discarding on target sectors where source is not allocated. Signed-off-by: Fam Zheng f...@redhat.com --- block/mirror.c| 8 ++-- blockdev.c| 5 + hmp.c | 2 +- include/block/block_int.h | 2 ++