From: Eric Blake <eblake@redhat.com>
To: Alberto Garcia <berto@igalia.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>,
qemu-block@nongnu.org, Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/8] block: allow block jobs in any arbitrary node
Date: Wed, 22 Apr 2015 14:06:15 -0600 [thread overview]
Message-ID: <5537FF37.8070902@redhat.com> (raw)
In-Reply-To: <ac711ac1d2b889a3de4a359eefa0d186447191e1.1429196435.git.berto@igalia.com>
[-- Attachment #1: Type: text/plain, Size: 2444 bytes --]
On 04/16/2015 09:12 AM, Alberto Garcia wrote:
> Currently, block jobs can only be owned by root nodes. This patch
> allows block jobs to be in any arbitrary node, by making the following
> changes:
>
> - Block jobs can now be identified by the node name of their
> BlockDriverState in addition to the device name. Since both device
> and node names live in the same namespace there's no ambiguity.
>
> - The "device" parameter used by all commands that operate on block
> jobs can also be a node name now.
>
> - The node name is used as a fallback to fill in the BlockJobInfo
> structure and all BLOCK_JOB_* events if there is no device name for
> that job.
>
> Signed-off-by: Alberto Garcia <berto@igalia.com>
> ---
> block/mirror.c | 5 +++--
> blockdev.c | 16 ++++++++--------
> blockjob.c | 18 ++++++++++--------
> docs/qmp/qmp-events.txt | 8 ++++----
> include/qapi/qmp/qerror.h | 3 ---
> qapi/block-core.json | 20 ++++++++++----------
> 6 files changed, 35 insertions(+), 35 deletions(-)
>
> +++ b/docs/qmp/qmp-events.txt
> @@ -89,7 +89,7 @@ Data:
>
> - "type": Job type (json-string; "stream" for image streaming
> "commit" for block commit)
> -- "device": Device name (json-string)
> +- "device": Device name, or node name if not present (json-string)
You used this wording for all the events...
> +++ b/qapi/block-core.json
> @@ -540,7 +540,7 @@
> #
> # @type: the job type ('stream' for image streaming)
> #
> -# @device: the block device name
> +# @device: the block device name, or node name if not present
> #
and again here,
> # @len: the maximum progress value
> #
> @@ -1065,7 +1065,7 @@
> #
> # Throttling can be disabled by setting the speed to 0.
> #
> -# @device: the device name
> +# @device: the device or node name of the owner of the block job.
but this wording is different. I like it a bit better ("node name if
not present" feels like it could be a bit ambiguous as to what is not
present, and "device or node name" is shorter than "device name, or node
name if not present").
I'm not sure if it's worth changing, and I could live with the patch
as-is, so:
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2015-04-22 20:07 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-16 15:12 [Qemu-devel] [PATCH v4 0/8] Support streaming to an intermediate layer Alberto Garcia
2015-04-16 15:12 ` [Qemu-devel] [PATCH 1/8] block: keep a list of block jobs Alberto Garcia
2015-04-22 20:00 ` Eric Blake
2015-04-16 15:12 ` [Qemu-devel] [PATCH 2/8] block: allow block jobs in any arbitrary node Alberto Garcia
2015-04-22 17:15 ` Max Reitz
2015-04-22 20:06 ` Eric Blake [this message]
2015-04-23 9:04 ` Alberto Garcia
2015-04-16 15:12 ` [Qemu-devel] [PATCH 3/8] block: never cancel a streaming job without running stream_complete() Alberto Garcia
2015-04-16 15:12 ` [Qemu-devel] [PATCH 4/8] block: Support streaming to an intermediate layer Alberto Garcia
2015-04-22 17:23 ` Max Reitz
2015-04-16 15:12 ` [Qemu-devel] [PATCH 5/8] block: Add QMP support for " Alberto Garcia
2015-04-22 17:26 ` Max Reitz
2015-04-22 20:10 ` Eric Blake
2015-04-16 15:12 ` [Qemu-devel] [PATCH 6/8] docs: Document how to stream " Alberto Garcia
2015-04-22 17:29 ` Max Reitz
2015-04-22 19:27 ` Eric Blake
2015-04-16 15:12 ` [Qemu-devel] [PATCH 7/8] qemu-iotests: fix test_stream_partial() Alberto Garcia
2015-04-22 17:54 ` Max Reitz
2015-04-22 19:38 ` Eric Blake
2015-04-22 19:52 ` Alberto Garcia
2015-04-16 15:12 ` [Qemu-devel] [PATCH 8/8] qemu-iotests: test streaming to an intermediate layer Alberto Garcia
2015-04-22 17:56 ` Max Reitz
2015-04-22 19:54 ` Eric Blake
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=5537FF37.8070902@redhat.com \
--to=eblake@redhat.com \
--cc=berto@igalia.com \
--cc=kwolf@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--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).