Received: from eggs.gnu.org ([2001:4830:134:3::10]:49951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brqJE-0001J2-QJ for qemu-devel@nongnu.org; Wed, 05 Oct 2016 13:48:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brqJC-0006F8-Rr for qemu-devel@nongnu.org; Wed, 05 Oct 2016 13:48:47 -0400 References: <1475659573-1664-1-git-send-email-kwolf@redhat.com> <1475659573-1664-2-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: <9d1cc1ec-0cf0-0852-6b5a-45620d32cbdb@redhat.com> Date: Wed, 5 Oct 2016 19:48:38 +0200 MIME-Version: 1.0 In-Reply-To: <1475659573-1664-2-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iRAQ7ceMxIAqph9UK71hwsdHf1Vb1sijq" Subject: Re: [Qemu-devel] [PATCH 1/3] block: Add node name to BLOCK_IO_ERROR event List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --iRAQ7ceMxIAqph9UK71hwsdHf1Vb1sijq From: Max Reitz To: Kevin Wolf , qemu-block@nongnu.org Cc: eblake@redhat.com, qemu-devel@nongnu.org Message-ID: <9d1cc1ec-0cf0-0852-6b5a-45620d32cbdb@redhat.com> Subject: Re: [PATCH 1/3] block: Add node name to BLOCK_IO_ERROR event References: <1475659573-1664-1-git-send-email-kwolf@redhat.com> <1475659573-1664-2-git-send-email-kwolf@redhat.com> In-Reply-To: <1475659573-1664-2-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 05.10.2016 11:26, Kevin Wolf wrote: > The event currently only contains the BlockBackend name. However, with > anonymous BlockBackends, this is always the empty string. Add the node > name so that the user can still see which block device caused the event= =2E >=20 > Signed-off-by: Kevin Wolf > --- > block/block-backend.c | 5 +++-- > docs/qmp-events.txt | 6 +++++- > qapi/block-core.json | 8 ++++++-- > 3 files changed, 14 insertions(+), 5 deletions(-) Reviewed-by: Max Reitz Although it is a bit weird to report the root node's name, because I'd expect the I/O error to occur on the protocol layer and thus the event to report the protocol node's name. OTOH, I think it'd be rather difficult to either keep the information from which node the error originated or to trace it back when we want to report it (and the decision to report it is generally made on the root node, so...). Therefore, reporting it on the root node is probably the best we can do. Would it make sense to add a short note to the documentation (qmp-events.txt and block-core.json) that the node name reported is not necessarily the node the I/O error originated from but may (and generally is) instead be some node above it? Max --iRAQ7ceMxIAqph9UK71hwsdHf1Vb1sijq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEvBAEBCAAZBQJX9Tz2EhxtcmVpdHpAcmVkaGF0LmNvbQAKCRD0B9sAYdXPQD5Y B/42/4RC6mvjlhTtawk42LeGoAG0w3RiYN/kt236WDRRjopEIb3NK1CRyB3/SlGc lg44ViKZVTWSLcnsWYBWtlF/D9boRNKrb792gbZ57K4oRdpu0M0wJ6dZwYNdBNBs vLsnZFfQPr6s5FLQHL9yq/tB+5hMVqVPZ3wWrvcNtJGXQKMOe2TFPT1DZ/b2UGiW Jiz9qFi8Kzi1YpI9uXZ7ckg7LwusyJW9Mq1+dhvElxO8siipdpMoyB2OCuqVYsV9 a8IFoczgs3tiFOPfhxvG4mea600eKw9npC53dPaxwwZAxW94Cotu5ed78ftBI5se m6xYgaRuvewTRhA7kQZKvEB4 =JuI0 -----END PGP SIGNATURE----- --iRAQ7ceMxIAqph9UK71hwsdHf1Vb1sijq--