Re: [Qemu-devel] [PATCH v5] mirror: correct buf_size

2015-06-19 Thread Jeff Cody
On Fri, May 15, 2015 at 03:51:36PM +0800, Wen Congyang wrote: If bus_size is less than 0, the command fails. If buf_size is 0, use DEFAULT_MIRROR_BUF_SIZE. If buf_size % granularity is not 0, mirror_free_init() will do dangerous things. Signed-off-by: Wen Congyang we...@cn.fujitsu.com

Re: [Qemu-devel] [PATCH v5] mirror: correct buf_size

2015-06-16 Thread Wen Congyang
Ping... On 05/15/2015 03:51 PM, Wen Congyang wrote: If bus_size is less than 0, the command fails. If buf_size is 0, use DEFAULT_MIRROR_BUF_SIZE. If buf_size % granularity is not 0, mirror_free_init() will do dangerous things. Signed-off-by: Wen Congyang we...@cn.fujitsu.com Reviewed-by:

[Qemu-devel] [PATCH v5] mirror: correct buf_size

2015-05-15 Thread Wen Congyang
If bus_size is less than 0, the command fails. If buf_size is 0, use DEFAULT_MIRROR_BUF_SIZE. If buf_size % granularity is not 0, mirror_free_init() will do dangerous things. Signed-off-by: Wen Congyang we...@cn.fujitsu.com Reviewed-by: Fam Zheng f...@redhat.com --- block/mirror.c | 11