From: Kevin Wolf <kwolf@redhat.com>
To: Alberto Garcia <berto@igalia.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
Max Reitz <mreitz@redhat.com>, Eric Blake <eblake@redhat.com>,
Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v12 10/19] block: Add QMP support for streaming to an intermediate layer
Date: Thu, 27 Oct 2016 10:58:04 +0200 [thread overview]
Message-ID: <20161027085804.GA4027@noname.redhat.com> (raw)
In-Reply-To: <w51oa27hvmx.fsf@maestria.local.igalia.com>
Am 26.10.2016 um 19:23 hat Alberto Garcia geschrieben:
> On Wed 26 Oct 2016 04:58:00 PM CEST, Kevin Wolf <kwolf@redhat.com> wrote:
> > Am 26.10.2016 um 12:29 hat Alberto Garcia geschrieben:
> >> This patch makes the 'device' parameter of the 'block-stream' command
> >> accept a node name that is not a root node.
> >>
> >> In addition to that, operation blockers will be checked in all
> >> intermediate nodes between the top and the base node.
> >>
> >> Signed-off-by: Alberto Garcia <berto@igalia.com>
> >
> >> --- a/qapi/block-core.json
> >> +++ b/qapi/block-core.json
> >> @@ -1464,6 +1464,10 @@
> >> # with query-block-jobs. The operation can be stopped before it has completed
> >> # using the block-job-cancel command.
> >> #
> >> +# The node that receives the data is called the top image, can be located in
> >> +# any part of the chain (but always above the base image; see below) and can be
> >> +# specified using its device or node name.
> >> +#
> >> # If a base file is specified then sectors are not copied from that base file and
> >> # its backing chain. When streaming completes the image file will have the base
> >> # file as its backing file. This can be used to stream a subset of the backing
> >> @@ -1475,12 +1479,12 @@
> >> # @job-id: #optional identifier for the newly-created block job. If
> >> # omitted, the device name will be used. (Since 2.7)
> >> #
> >> -# @device: the device name or node-name of a root node
> >> +# @device: the device or node name of the top image
> >> #
> >> # @base: #optional the common backing file name
> >> #
> >> -# @backing-file: #optional The backing file string to write into the active
> >> -# layer. This filename is not validated.
> >> +# @backing-file: #optional The backing file string to write into the top
> >> +# image. This filename is not validated.
> >> #
> >> # If a pathname string is such that it cannot be
> >> # resolved by QEMU, that means that subsequent QMP or
> >
> > As we discussed in v10, this is not discoverable through
> > introspection. You added patch 18 which introduces a base-node option
> > and can serve as a witness for the changed semantics, which is
> > good. Should this be documented here?
>
> In the commit message I don't see why not, but in the JSON file?
>
> "This feature was added together with the base-node parameter" ?
Eric may have a better suggestion for the wording, but maybe something
like this:
"Presence of this feature can't directly be tested with introspection;
check for the presence of base-node instead as a witness for it."
Kevin
next prev parent reply other threads:[~2016-10-27 8:58 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-26 10:29 [Qemu-devel] [PATCH v12 00/19] Support streaming to an intermediate layer Alberto Garcia
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 01/19] block: Add bdrv_drain_all_{begin, end}() Alberto Garcia
2016-10-26 14:35 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 02/19] block: Pause all jobs during bdrv_reopen_multiple() Alberto Garcia
2016-10-26 14:36 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 03/19] block: Add block_job_add_bdrv() Alberto Garcia
2016-10-26 14:36 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 04/19] block: Use block_job_add_bdrv() in mirror_start_job() Alberto Garcia
2016-10-26 14:40 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 05/19] block: Use block_job_add_bdrv() in backup_start() Alberto Garcia
2016-10-26 14:41 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 06/19] block: Check blockers in all nodes involved in a block-commit job Alberto Garcia
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 07/19] block: Block all nodes involved in the block-commit operation Alberto Garcia
2016-10-26 14:49 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 08/19] block: Block all intermediate nodes in commit_active_start() Alberto Garcia
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 09/19] block: Support streaming to an intermediate layer Alberto Garcia
2016-10-26 14:52 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 10/19] block: Add QMP support for " Alberto Garcia
2016-10-26 14:58 ` Kevin Wolf
2016-10-26 17:23 ` Alberto Garcia
2016-10-27 8:58 ` Kevin Wolf [this message]
2016-10-27 10:08 ` Alberto Garcia
2016-10-27 14:46 ` Eric Blake
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 11/19] docs: Document how to stream " Alberto Garcia
2016-10-26 15:01 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 12/19] qemu-iotests: Test streaming " Alberto Garcia
2016-10-27 15:13 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 13/19] qemu-iotests: Test block-stream operations in parallel Alberto Garcia
2016-10-27 15:23 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 14/19] qemu-iotests: Test overlapping stream and commit operations Alberto Garcia
2016-10-27 15:36 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 15/19] qemu-iotests: Test block-stream and block-commit in parallel Alberto Garcia
2016-10-27 15:54 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 16/19] qemu-iotests: Add iotests.supports_quorum() Alberto Garcia
2016-10-27 15:56 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 17/19] qemu-iotests: Test streaming to a Quorum child Alberto Garcia
2016-10-27 16:03 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 18/19] block: Add 'base-node' parameter to the 'block-stream' command Alberto Garcia
2016-10-27 16:09 ` Kevin Wolf
2016-10-26 10:29 ` [Qemu-devel] [PATCH v12 19/19] qemu-iotests: Test the 'base-node' parameter of 'block-stream' Alberto Garcia
2016-10-27 16:13 ` Kevin Wolf
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=20161027085804.GA4027@noname.redhat.com \
--to=kwolf@redhat.com \
--cc=armbru@redhat.com \
--cc=berto@igalia.com \
--cc=eblake@redhat.com \
--cc=mreitz@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.