From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55818) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMkdH-0002vc-3u for qemu-devel@nongnu.org; Fri, 22 Jan 2016 17:56:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMkdG-0005dX-5a for qemu-devel@nongnu.org; Fri, 22 Jan 2016 17:56:43 -0500 References: <1453431996-27764-1-git-send-email-famz@redhat.com> <1453431996-27764-2-git-send-email-famz@redhat.com> From: Max Reitz Message-ID: <56A2B39F.1050103@redhat.com> Date: Fri, 22 Jan 2016 23:56:31 +0100 MIME-Version: 1.0 In-Reply-To: <1453431996-27764-2-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6vRpjDv0gclo173i7Gk0o7BUNTjure20r" Subject: Re: [Qemu-devel] [PATCH v7 01/15] 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) --6vRpjDv0gclo173i7Gk0o7BUNTjure20r Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 22.01.2016 04:06, 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 | 38 ++++++++++++++++++++++++++------------ > 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, 64 insertions(+), 35 deletions(-) Reviewed-by: Max Reitz --6vRpjDv0gclo173i7Gk0o7BUNTjure20r 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 iQEcBAEBCAAGBQJWorOfAAoJEDuxQgLoOKytN4YH/0hVTd2Vcas3/W/HBPWry3nL 0z7owkHNjQ4w0/p/6fIF/KNLTvr9U9fGxOQJ2EALIsDhMtZKsFDyA4oD24vJdmTU 4+3Xoy7ONQBe8QokEnljTWvRTIxdV2qdWWQta8av2JvKRHuXNsodlfpwGD105Wcn MMtwRRe06cUFN+3BtZ2RAbajS2n/uL4WRm1KhuFYNn7K7/YX6550AX2etymU0YzB 1Pbjf/5wTJX3rMdMmbCxDjggvHBT9Y0N+4oT+twKvrJehu02e54ZiPV3bHOU6AmJ b57Jfzk8pqH9sVgsetsfKN6gL9f0rCGLHHv3A/ZfiXrNnUWorauzXTwXBNiYXrU= =byVD -----END PGP SIGNATURE----- --6vRpjDv0gclo173i7Gk0o7BUNTjure20r--