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 > Reviewed-by: Fam Z

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

2015-06-15 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 > Reviewed-by: Fam Zheng > -

[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 Reviewed-by: Fam Zheng --- block/mirror.c | 11 ++- blockdev.c | 4 +--- 2 file