Fam Zheng 9e48b02540 mirror: Go through ready -> complete process for 0 len image
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-length image: report ready
immediately; wait for block-job-cancel or block-job-complete; clear the
cancel flag as existing non-zero image synced case (cancelled after
ready); then jump to the exit.

Reported-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-06-26 13:50:57 +02:00
..
2014-06-23 11:01:25 -04:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-24 20:01:24 +04:00
2014-02-25 10:50:11 +00:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-04-01 15:22:35 +02:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-23 11:12:28 -04:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-23 11:01:25 -04:00
2014-06-16 17:23:21 +08:00
2014-03-25 14:09:50 +01:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00
2014-06-16 17:23:21 +08:00