From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1FW6-0003CZ-LW for qemu-devel@nongnu.org; Tue, 24 Nov 2015 10:28:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1FW2-0002p6-Hp for qemu-devel@nongnu.org; Tue, 24 Nov 2015 10:28:26 -0500 References: <1448342531-16407-1-git-send-email-famz@redhat.com> <1448342531-16407-3-git-send-email-famz@redhat.com> From: Eric Blake Message-ID: <56548206.9070706@redhat.com> Date: Tue, 24 Nov 2015 08:28:06 -0700 MIME-Version: 1.0 In-Reply-To: <1448342531-16407-3-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oEbmWxuJpviVFnBJj0suEEhkimPL0LBEo" Subject: Re: [Qemu-devel] [PATCH for-2.6 02/14] qcow: Assign bs->file->bs to file in qcow_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 , Stefan Hajnoczi , Paolo Bonzini This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oEbmWxuJpviVFnBJj0suEEhkimPL0LBEo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/23/2015 10:21 PM, Fam Zheng wrote: > Signed-off-by: Fam Zheng > --- > block/qcow.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Eric Blake >=20 > diff --git a/block/qcow.c b/block/qcow.c > index 558f443..b59383f 100644 > --- a/block/qcow.c > +++ b/block/qcow.c > @@ -509,6 +509,7 @@ static int64_t coroutine_fn qcow_co_get_block_statu= s(BlockDriverState *bs, > return BDRV_BLOCK_DATA; > } > cluster_offset |=3D (index_in_cluster << BDRV_SECTOR_BITS); > + *file =3D bs->file->bs; > return BDRV_BLOCK_DATA | BDRV_BLOCK_OFFSET_VALID | cluster_offset;= > } > =20 >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --oEbmWxuJpviVFnBJj0suEEhkimPL0LBEo 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/ iQEcBAEBCAAGBQJWVIIHAAoJEKeha0olJ0NqziEIAKq8gYgpMd/VfeQT/waV/UVq 2p2zH6j4q50MSjuW8Kian6zZWIc3NwNHHGrw8AqflXpIFJCRxilGmhEOun4up1Q6 1E8p+tT7z6dsJgNzEN0DvO8c1BAZQn6omylPa6w3xVxYtxk2j72Eo7Pxhu0Svub+ yD5pz8iSvazQRUyyaQYGjfTx1BAH9IjMn2jMDU64aQuynlkpY0PbsOwW6/IT957M lVpMpWLZ8scOPdJu2yhBzqfp1B05Se7jemel5aqeq4wxaYy6IEcHd5j4srd7YNMC ic8M6zNYv5Ep5UxC8DnRDTAnRQ3Blqv0WxQd5UtIzBkmLDo7C8K/1N/0BePEx/E= =wlM3 -----END PGP SIGNATURE----- --oEbmWxuJpviVFnBJj0suEEhkimPL0LBEo--