From: Eric Blake <eblake@redhat.com>
To: Alberto Garcia <berto@igalia.com>, Fam Zheng <famz@redhat.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
qemu-block@nongnu.org, qemu-devel@nongnu.org,
Stefan Hajnoczi <stefanha@redhat.com>,
Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v4 2/4] block: support passing 'backing': '' to 'blockdev-add'
Date: Fri, 18 Sep 2015 08:41:21 -0600 [thread overview]
Message-ID: <55FC2291.1030902@redhat.com> (raw)
In-Reply-To: <w51r3m09o9s.fsf@maestria.local.igalia.com>
[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]
On 09/15/2015 12:42 AM, Alberto Garcia wrote:
> On Tue 15 Sep 2015 04:27:21 AM CEST, Fam Zheng <famz@redhat.com> wrote:
>
>>> + backing = qdict_get_try_str(options, "backing");
>>> + if (backing && *backing == '\0') {
>>> + flags |= BDRV_O_NO_BACKING;
>>> + }
>>> + qdict_del(options, "backing");
>>> +
>
>> Specifying a non-empty "backing" will be a slient nop now, but it used
>> to be an error before. Should we return an error?
>
> Ah, yes, I think it should return an error. Thanks!
With this squashed in,
Reviewed-by: Eric Blake <eblake@redhat.com>
>
> --- a/block.c
> +++ b/block.c
> @@ -1473,8 +1473,8 @@ static int bdrv_open_inherit(BlockDriverState
> **pbs, const char *filename,
> backing = qdict_get_try_str(options, "backing");
> if (backing && *backing == '\0') {
> flags |= BDRV_O_NO_BACKING;
> + qdict_del(options, "backing");
> }
> - qdict_del(options, "backing");
>
> Berto
>
>
--
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-09-18 14:41 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-14 16:01 [Qemu-devel] [PATCH v4 0/4] Add 'blockdev-snapshot' command Alberto Garcia
2015-09-14 16:01 ` [Qemu-devel] [PATCH v4 1/4] block: rename BlockdevSnapshot to BlockdevSnapshotSync Alberto Garcia
2015-09-18 10:35 ` Max Reitz
2015-09-14 16:01 ` [Qemu-devel] [PATCH v4 2/4] block: support passing 'backing': '' to 'blockdev-add' Alberto Garcia
2015-09-15 2:27 ` Fam Zheng
2015-09-15 6:42 ` Alberto Garcia
2015-09-18 14:41 ` Eric Blake [this message]
2015-09-14 16:01 ` [Qemu-devel] [PATCH v4 3/4] block: add a 'blockdev-snapshot' QMP command Alberto Garcia
2015-09-18 10:44 ` Max Reitz
2015-09-18 14:49 ` Eric Blake
2015-09-22 9:21 ` Alberto Garcia
2015-09-22 9:32 ` Kevin Wolf
2015-09-14 16:01 ` [Qemu-devel] [PATCH v4 4/4] block: add tests for the 'blockdev-snapshot' command Alberto Garcia
2015-09-18 10:49 ` Max Reitz
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=55FC2291.1030902@redhat.com \
--to=eblake@redhat.com \
--cc=berto@igalia.com \
--cc=famz@redhat.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).