From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52664) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1ojj-0006jM-O5 for qemu-devel@nongnu.org; Thu, 26 Nov 2015 00:04:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1oji-00078O-OX for qemu-devel@nongnu.org; Thu, 26 Nov 2015 00:04:51 -0500 References: <1448437153-27090-1-git-send-email-famz@redhat.com> <1448437153-27090-11-git-send-email-famz@redhat.com> From: Eric Blake Message-ID: <565692EB.7080107@redhat.com> Date: Wed, 25 Nov 2015 22:04:43 -0700 MIME-Version: 1.0 In-Reply-To: <1448437153-27090-11-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="erd0p8kDLD2egSWhXBeOXtviOwxo0WbHh" Subject: Re: [Qemu-devel] [PATCH v2 10/14] vpc: Assign bs->file->bs to file in vpc_co_get_block_status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng , qemu-devel@nongnu.org Cc: Kevin Wolf , qemu-block@nongnu.org, Jeff Cody , Peter Lieven , Markus Armbruster , Stefan Hajnoczi , Paolo Bonzini This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --erd0p8kDLD2egSWhXBeOXtviOwxo0WbHh Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/25/2015 12:39 AM, Fam Zheng wrote: > Signed-off-by: Fam Zheng > --- > block/vpc.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Eric Blake >=20 > diff --git a/block/vpc.c b/block/vpc.c > index 912f5d0..412ff41 100644 > --- a/block/vpc.c > +++ b/block/vpc.c > @@ -588,6 +588,7 @@ static int64_t coroutine_fn vpc_co_get_block_status= (BlockDriverState *bs, > =20 > if (be32_to_cpu(footer->type) =3D=3D VHD_FIXED) { > *pnum =3D nb_sectors; > + *file =3D bs->file->bs; > return BDRV_BLOCK_RAW | BDRV_BLOCK_OFFSET_VALID | BDRV_BLOCK_D= ATA | > (sector_num << BDRV_SECTOR_BITS); > } > @@ -609,6 +610,7 @@ static int64_t coroutine_fn vpc_co_get_block_status= (BlockDriverState *bs, > /* *pnum can't be greater than one block for allocated > * sectors since there is always a bitmap in between. */ > if (allocated) { > + *file =3D bs->file->bs; > return BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | start; > } > if (nb_sectors =3D=3D 0) { >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --erd0p8kDLD2egSWhXBeOXtviOwxo0WbHh 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWVpLrAAoJEKeha0olJ0Nq/BUIAKmEGFfMOvyBFXfFyiflCy8d VJ5v+9HDjpOsJ6I3CM4PrDxA10s2Equj1FCzZx0npLFyKVNVQXAIGRCVllTRUFql 4Vu2jNXm9NorvsakZ6dBUiulN9K0LA/mJKxIT+7SXhHjPAZsU0n6iZw0AZgGQWQI VXB8TJcNxj5Yp6DvLBSo1XT4w1gDE5QDQm8ZzjJGASjRbKQTKJGpP3ThHXkP5Nb9 3PcGWr7V0fsnhmRuylIh53ryrBPC7G3KW2p3iBbF8A2mnV6FWe0xPRHadbPc/2IC Q+1Kd/AcDcVEu2BB8tgPBO/6abWAZM7698vBJGsstBMU+8Yfqnm+6V62qeZjvsY= =T+J6 -----END PGP SIGNATURE----- --erd0p8kDLD2egSWhXBeOXtviOwxo0WbHh--