Received: from eggs.gnu.org ([2001:4830:134:3::10]:47648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bP9KK-0001El-O5 for qemu-devel@nongnu.org; Mon, 18 Jul 2016 10:15:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bP9KG-00031b-0C for qemu-devel@nongnu.org; Mon, 18 Jul 2016 10:15:20 -0400 References: <1468502894-18098-1-git-send-email-kwolf@redhat.com> <1468502894-18098-8-git-send-email-kwolf@redhat.com> <5787F9C2.4040000@redhat.com> From: Max Reitz Message-ID: Date: Mon, 18 Jul 2016 16:15:01 +0200 MIME-Version: 1.0 In-Reply-To: <5787F9C2.4040000@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="b98vNnrsMWqTtrQa01O0blFtN1BIwNud3" Subject: Re: [Qemu-devel] [PATCH v4 07/11] block: Accept node-name for change-backing-file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , Kevin Wolf , qemu-block@nongnu.org Cc: berto@igalia.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --b98vNnrsMWqTtrQa01O0blFtN1BIwNud3 From: Max Reitz To: Eric Blake , Kevin Wolf , qemu-block@nongnu.org Cc: berto@igalia.com, qemu-devel@nongnu.org Message-ID: Subject: Re: [PATCH v4 07/11] block: Accept node-name for change-backing-file References: <1468502894-18098-1-git-send-email-kwolf@redhat.com> <1468502894-18098-8-git-send-email-kwolf@redhat.com> <5787F9C2.4040000@redhat.com> In-Reply-To: <5787F9C2.4040000@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 14.07.2016 22:44, Eric Blake wrote: > On 07/14/2016 07:28 AM, Kevin Wolf wrote: >> In order to remove the necessity to use BlockBackend names in the >> external API, we want to allow node-names everywhere. This converts >> change-backing-file to accept a node-name without lifting the >> restriction that we're operating at a root node. >> >> In case of an invalid device name, the command returns the GenericErro= r >> error class now instead of DeviceNotFound, because this is what >> qmp_get_root_bs() returns. >> >> Signed-off-by: Kevin Wolf >> --- >> blockdev.c | 15 +++------------ >> qapi/block-core.json | 3 ++- >> qmp-commands.hx | 3 ++- >> 3 files changed, 7 insertions(+), 14 deletions(-) >> >=20 > Reviewed-by: Eric Blake >=20 > Sometimes I wonder why this command is limited to only the root node - > it seems like tweaking the backing file text of an intermediate node in= > a chain would be useful to someone. But that's not the problem for thi= s > series. Is it? The main argument of change-backing-file is not @device but @image-node-name. @device is just used for a sanity check. Max --b98vNnrsMWqTtrQa01O0blFtN1BIwNud3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEvBAEBCAAZBQJXjORlEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRA7sUIC6DisrRfj B/4riYHWU5VVNGvahEQ76W1rbNp3Uvy0tkHZENPzMMHfMpxzqqYDid8D43EczeLC q/UXXxHxM/e64/tKyX/HEGSB7BFzSQwdl/HUdk5DoZdxTzNCi4fopBNZstv7QDT9 7LVBRKxu7hx77IqM5iH5rL0DfZQyLARRez+IvWAtWoRNBqZHvjJpidT/yGx7MNe3 NhHly1eC3NBQsRF82Z5jN5FOUbB6hWQ/vMXICFxf2+0uXGA6XuNrs7xcGuw8ELiB o9wgXF+DoT3sHWZLukpTWaforN5Ihx7lJ/6OPzAfVayOOLlA2b6RjNn4In5A+AaH FjqFcsV6WAPkwNEPrWh+hiFR =hb0t -----END PGP SIGNATURE----- --b98vNnrsMWqTtrQa01O0blFtN1BIwNud3--