From: Kevin Wolf <kwolf@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: Eric Blake <eblake@redhat.com>, John Snow <jsnow@redhat.com>,
qemu-devel@nongnu.org, "open list:Floppy" <qemu-block@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH v2 4/6] fdc-test: Avoid deprecated 'change' command
Date: Tue, 11 Apr 2017 10:58:33 +0200 [thread overview]
Message-ID: <20170411085833.GC4516@noname.str.redhat.com> (raw)
In-Reply-To: <8737dfe3c4.fsf@dusky.pond.sub.org>
Am 11.04.2017 um 10:49 hat Markus Armbruster geschrieben:
> Eric Blake <eblake@redhat.com> writes:
>
> > On 01/19/2017 08:39 AM, Eric Blake wrote:
> >> On 01/19/2017 03:30 AM, Markus Armbruster wrote:
> >>> Eric Blake <eblake@redhat.com> writes:
> >>>
> >>>> Use the preferred blockdev-change-medium command instead.
> >>>>
> >>>> Signed-off-by: Eric Blake <eblake@redhat.com>
> >>>> Reviewed-by: John Snow <jsnow@redhat.com>
> >>>> ---
> >>>> tests/fdc-test.c | 5 +++--
> >>>> 1 file changed, 3 insertions(+), 2 deletions(-)
> >>>>
> >>>> diff --git a/tests/fdc-test.c b/tests/fdc-test.c
> >>>> index 738c6b4..f5ff68d 100644
> >>>> --- a/tests/fdc-test.c
> >>>> +++ b/tests/fdc-test.c
> >>>> @@ -298,8 +298,9 @@ static void test_media_insert(void)
> >>>>
> >>>> /* Insert media in drive. DSKCHK should not be reset until a step pulse
> >>>> * is sent. */
> >>>> - qmp_discard_response("{'execute':'change', 'arguments':{"
> >>>> - " 'device':'floppy0', 'target': %s, 'arg': 'raw' }}",
> >>>> + qmp_discard_response("{'execute':'blockdev-change-medium', 'arguments':{"
> >>>> + " 'device':'floppy0', 'filename': %s, "
> >>>> + "'format': 'raw' }}",
> >>>> test_image);
> >>>>
> >>>> dir = inb(FLOPPY_BASE + reg_dir);
> >>>
> >>> 'device' is deprecated. Can we use 'id' here?
> >>
> >> I'll give it a shot.
> >
> > Harder than I thought. Search for 'floppy0' in tests/ - you'll notice
> > that nothing explicitly sets that device name, which means I don't know
> > where to inject an explicit 'id' counterpart name to use instead (we are
> > inheriting the default device name that you get when starting an x86
> > board without -nodefaults). Maybe someone else can supply an idea?
>
> Kevin, John?
I replied somewhere else, I guess v3 of the series. The solution is as
simple as '-device floppy,id=foo'.
Kevin
next prev parent reply other threads:[~2017-04-11 8:58 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 [this message]
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
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=20170411085833.GC4516@noname.str.redhat.com \
--to=kwolf@redhat.com \
--cc=armbru@redhat.com \
--cc=eblake@redhat.com \
--cc=jsnow@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.