All of lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Armbruster <armbru@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 6/6] qapi: Promote blockdev-change-medium arguments to QAPI type
Date: Thu, 19 Jan 2017 10:48:41 +0100	[thread overview]
Message-ID: <8737gffkhy.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20170118161653.19296-7-eblake@redhat.com> (Eric Blake's message of "Wed, 18 Jan 2017 10:16:53 -0600")

Eric Blake <eblake@redhat.com> writes:

> Having a named rather than anonymous C type will make it easier
> to improve the testsuite in a later patch.

Post it together with said later patch then.

>                                            No semantic change,
> to any of the existing code or to the introspection output.
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
>
> ---
> v2: rebase to master
> ---
>  qapi/block-core.json | 11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index 1b3e6eb..0e31d25 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -3119,6 +3119,15 @@
>  # combines blockdev-open-tray, x-blockdev-remove-medium,
>  # x-blockdev-insert-medium and blockdev-close-tray).
>  #
> +# Since: 2.5
> +##
> +{ 'command': 'blockdev-change-medium',
> +  'data': 'BlockdevChangeMedium' }
> +
> +
> +##
> +# @BlockdevChangeMedium:
> +#
>  # @device:          #optional Block device name (deprecated, use @id instead)
>  #
>  # @id:              #optional The name or QOM path of the guest device
   #                   (since: 2.8)
   #
   # @filename:        filename of the new image to be loaded
   #
   # @format:          #optional, format to open the new image with (defaults to
   #                   the probed format)
   #
   # @read-only-mode:  #optional, change the read-only mode of the device; defaults
   #                   to 'retain'
   #
   # Since: 2.5

Isn't Since: 2.5 misleading?  The anonymous type goes back to 2.5, but
the name doesn't.

> @@ -3165,7 +3174,7 @@
>  # <- { "return": {} }
>  #
>  ##
> -{ 'command': 'blockdev-change-medium',
> +{ 'struct': 'BlockdevChangeMedium',
>    'data': { '*device': 'str',
>              '*id': 'str',
>              'filename': 'str',

  parent reply	other threads:[~2017-01-19  9:48 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-18 16:16 [Qemu-devel] [PATCH v2 0/6] qapi-related cleanups Eric Blake
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 1/6] pci: Use struct instead of QDict to pass back parameters Eric Blake
2017-01-18 16:57   ` Michael S. Tsirkin
2017-01-19  9:08   ` Marc-André Lureau
2017-01-19  9:23   ` Markus Armbruster
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 2/6] qdict: Add convenience helpers for wrapped puts Eric Blake
2017-01-18 16:16   ` Eric Blake
2017-01-19  9:08   ` [Qemu-devel] " Marc-André Lureau
2017-01-19  9:08     ` Marc-André Lureau
2017-01-19  9:25   ` Markus Armbruster
2017-01-19  9:25     ` Markus Armbruster
2017-01-19 14:38     ` Eric Blake
2017-01-19 14:38       ` Eric Blake
2017-04-04 22:41       ` Eric Blake
2017-04-04 22:41         ` Eric Blake
2017-04-05  8:18         ` Richard W.M. Jones
2017-04-05  8:18           ` Richard W.M. Jones
2017-04-05  8:21           ` Julia Lawall
2017-04-05  8:21             ` Julia Lawall
2017-04-05  8:24             ` Richard W.M. Jones
2017-04-05  8:24               ` Richard W.M. Jones
2017-04-05  8:38               ` Julia Lawall
2017-04-05  8:38                 ` Julia Lawall
2017-04-05  9:01                 ` Richard W.M. Jones
2017-04-05  9:01                   ` Richard W.M. Jones
2017-04-05 11:54                   ` Paolo Bonzini
2017-04-05 11:54                     ` Paolo Bonzini
2017-04-05 15:16                     ` Eric Blake
2017-04-05 15:16                       ` Eric Blake
2017-01-19 17:36   ` Stefan Hajnoczi
2017-01-19 17:36     ` Stefan Hajnoczi
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 3/6] qlist: Add convenience helpers for wrapped appends Eric Blake
2017-01-19  9:08   ` Marc-André Lureau
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 4/6] fdc-test: Avoid deprecated 'change' command Eric Blake
2017-01-19  9:30   ` Markus Armbruster
2017-01-19 14:39     ` Eric Blake
2017-04-05  2:10       ` Eric Blake
2017-04-11  8:49         ` Markus Armbruster
2017-04-11  8:58           ` Kevin Wolf
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 5/6] test-qga: Actually test 0xff sync bytes Eric Blake
2017-01-19  9:08   ` Marc-André Lureau
2017-01-19  9:45   ` Markus Armbruster
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 6/6] qapi: Promote blockdev-change-medium arguments to QAPI type Eric Blake
2017-01-19  9:07   ` Marc-André Lureau
2017-01-19  9:48   ` Markus Armbruster [this message]
2017-01-19 14:42     ` Eric Blake
2017-01-20  7:15       ` Markus Armbruster
2017-01-20 14:38         ` 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=8737gffkhy.fsf@dusky.pond.sub.org \
    --to=armbru@redhat.com \
    --cc=eblake@redhat.com \
    --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.