From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55570) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOUbr-0006s5-Lu for qemu-devel@nongnu.org; Wed, 27 Jan 2016 13:14:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOUbq-0006ZE-R2 for qemu-devel@nongnu.org; Wed, 27 Jan 2016 13:14:27 -0500 References: <1453780743-16806-1-git-send-email-famz@redhat.com> <1453780743-16806-2-git-send-email-famz@redhat.com> From: Max Reitz Message-ID: <56A908F9.6070504@redhat.com> Date: Wed, 27 Jan 2016 19:14:17 +0100 MIME-Version: 1.0 In-Reply-To: <1453780743-16806-2-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8n3gnMJ0BAAPSmJu7rrEMIV6WX9XMoHMS" Subject: Re: [Qemu-devel] [PATCH v9 01/16] block: Add "file" output parameter to block status query functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , pbonzini@redhat.com, Stefan Hajnoczi , qemu-block@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8n3gnMJ0BAAPSmJu7rrEMIV6WX9XMoHMS Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 26.01.2016 04:58, Fam Zheng wrote: > The added parameter can be used to return the BDS pointer which the > valid offset is referring to. Its value should be ignored unless > BDRV_BLOCK_OFFSET_VALID in ret is set. >=20 > Until block drivers fill in the right value, let's clear it explicitly > right before calling .bdrv_get_block_status. >=20 > The "bs->file" condition in bdrv_co_get_block_status is kept now to kee= p iotest > case 102 passing, and will be fixed once all drivers return the right f= ile > pointer. >=20 > Signed-off-by: Fam Zheng > --- > block/io.c | 40 ++++++++++++++++++++++++++++-----------= - > block/iscsi.c | 6 ++++-- > block/mirror.c | 3 ++- > block/parallels.c | 2 +- > block/qcow.c | 2 +- > block/qcow2.c | 2 +- > block/qed.c | 3 ++- > block/raw-posix.c | 3 ++- > block/raw_bsd.c | 3 ++- > block/sheepdog.c | 2 +- > block/vdi.c | 2 +- > block/vmdk.c | 2 +- > block/vpc.c | 2 +- > block/vvfat.c | 2 +- > include/block/block.h | 11 +++++++---- > include/block/block_int.h | 3 ++- > qemu-img.c | 13 +++++++++---- > 17 files changed, 66 insertions(+), 35 deletions(-) Reviewed-by: Max Reitz --8n3gnMJ0BAAPSmJu7rrEMIV6WX9XMoHMS 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 iQEcBAEBCAAGBQJWqQj6AAoJEDuxQgLoOKyti44IAJ5R/y9wL7ZbEs5XF7v4gG7M GGjYaMiGrXH1eqI5mIEhmrmEetq1/aQlydD7H8VXDu/d526H/QIqk0/mVEK9Pkno y1d68RT8voiCC3SmnPS+2VsEIoA5HLSQJqSKBWo3M7V4DIFgMfuOZ92DA1VMAuxb jPkm8CvrhipYbS1abkV8dtPiB+A08EGZ2J4plmz/SV0JxauwciCuZvN4KTRpfeUX o9uPtE2SjBborN5uW6GwiY7Q4y1hKVKMoAWOJUapT6B4DlvuyBQ+yltGlFI/ygSZ TV73SVq9pQYPU+nmexIVjm3ydkkA0OvtDP9dYMSsA10nWeBKFEzqhtOaoC7p2cI= =EQlI -----END PGP SIGNATURE----- --8n3gnMJ0BAAPSmJu7rrEMIV6WX9XMoHMS--