qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 0/4] mirror: Fix behavior for zero byte image
Date: Tue, 24 Jun 2014 12:25:03 +0800	[thread overview]
Message-ID: <20140624042503.GA1865@T430.redhat.com> (raw)
In-Reply-To: <1402282583-19707-1-git-send-email-famz@redhat.com>

On Mon, 06/09 10:56, Fam Zheng wrote:
> The current behavior of mirroring zero byte image is slightly different from
> non-zero image: the BLOCK_JOB_READY event is skipped and job is completed
> immediately. This is not a big problem for human user but only makes management
> software harder to write. Since we are focusing on an good API instead of UI,
> let's make the behavior more consistent and predictable.
> 
> The first patch fixes the behavior. The following two patches add test case for
> the involved code path.
> 
> Thanks for Eric Blake to report this!

Ping. Shall we merge this before it rots?

Thanks,
Fam

> 
> 
> v2: Address Stefan's comments.
> 
>     - Added patch 01: block_job_yield.
>     - Use block_job_yield in 02.
>     - Fix test case updates.
> 
> Thanks to Stefan, Paolo and Eric for reviewing!
> 
> Fam
> 
> 
> Fam Zheng (4):
>   blockjob: Add block_job_yield()
>   mirror: Go through ready -> complete process for 0 len image
>   qemu-iotests: Test BLOCK_JOB_READY event for 0Kb image active commit
>   qemu-iotests: Test 0-length image for mirror
> 
>  block/mirror.c             | 11 ++++++++++-
>  blockjob.c                 | 14 ++++++++++++++
>  include/block/blockjob.h   |  8 ++++++++
>  tests/qemu-iotests/040     | 12 +++++++++---
>  tests/qemu-iotests/040.out |  4 ++--
>  tests/qemu-iotests/041     |  9 ++++++---
>  tests/qemu-iotests/041.out |  4 ++--
>  7 files changed, 51 insertions(+), 11 deletions(-)
> 
> -- 
> 2.0.0
> 

  parent reply	other threads:[~2014-06-24  4:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09  2:56 [Qemu-devel] [PATCH v2 0/4] mirror: Fix behavior for zero byte image Fam Zheng
2014-06-09  2:56 ` [Qemu-devel] [PATCH v2 1/4] blockjob: Add block_job_yield() Fam Zheng
2014-06-10 18:54   ` Eric Blake
2014-06-09  2:56 ` [Qemu-devel] [PATCH v2 2/4] mirror: Go through ready -> complete process for 0 len image Fam Zheng
2014-06-10 18:56   ` Eric Blake
2014-06-09  2:56 ` [Qemu-devel] [PATCH v2 3/4] qemu-iotests: Test BLOCK_JOB_READY event for 0Kb image active commit Fam Zheng
2014-06-09  2:56 ` [Qemu-devel] [PATCH v2 4/4] qemu-iotests: Test 0-length image for mirror Fam Zheng
2014-06-10 18:58   ` Eric Blake
2014-06-24  4:25 ` Fam Zheng [this message]
2014-06-24 11:32   ` [Qemu-devel] [PATCH v2 0/4] mirror: Fix behavior for zero byte image Kevin Wolf
2014-06-24 12:39     ` Fam Zheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140624042503.GA1865@T430.redhat.com \
    --to=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).