Re: [Qemu-devel] [PATCH v2 2/4] mirror: Go through ready -> complete process for 0 len image

2014-06-10 Thread Eric Blake
On 06/08/2014 08:56 PM, Fam Zheng wrote: > When mirroring or active committing a zero length image, BLOCK_JOB_READY > is not reported now, instead the job completes because we short circuit > the mirror job loop. > > This is inconsistent with non-zero length images, and only confuses > management

[Qemu-devel] [PATCH v2 2/4] mirror: Go through ready -> complete process for 0 len image

2014-06-08 Thread Fam Zheng
When mirroring or active committing a zero length image, BLOCK_JOB_READY is not reported now, instead the job completes because we short circuit the mirror job loop. This is inconsistent with non-zero length images, and only confuses management software. Let's do the same thing when seeing a 0-le