From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1oig-00053m-FF for qemu-devel@nongnu.org; Thu, 26 Nov 2015 00:03:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1oif-0006kl-HL for qemu-devel@nongnu.org; Thu, 26 Nov 2015 00:03:46 -0500 References: <1448437153-27090-1-git-send-email-famz@redhat.com> <1448437153-27090-9-git-send-email-famz@redhat.com> From: Eric Blake Message-ID: <565692AB.8090801@redhat.com> Date: Wed, 25 Nov 2015 22:03:39 -0700 MIME-Version: 1.0 In-Reply-To: <1448437153-27090-9-git-send-email-famz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kTjXrgfSbV51jTVbeKaXBdI6d8jqpGU4N" Subject: Re: [Qemu-devel] [PATCH v2 08/14] sheepdog: Assign bs to file in sd_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) --kTjXrgfSbV51jTVbeKaXBdI6d8jqpGU4N 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/sheepdog.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Eric Blake >=20 > diff --git a/block/sheepdog.c b/block/sheepdog.c > index 0f6789e..d5e7ff8 100644 > --- a/block/sheepdog.c > +++ b/block/sheepdog.c > @@ -2740,6 +2740,9 @@ sd_co_get_block_status(BlockDriverState *bs, int6= 4_t sector_num, int nb_sectors, > if (*pnum > nb_sectors) { > *pnum =3D nb_sectors; > } > + if (ret > 0 && ret & BDRV_BLOCK_OFFSET_VALID) { > + *file =3D bs; > + } > return ret; > } > =20 >=20 --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --kTjXrgfSbV51jTVbeKaXBdI6d8jqpGU4N 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/ iQEcBAEBCAAGBQJWVpKrAAoJEKeha0olJ0NqDzoH/03Cr4Tm1yMt2w1xKR2+n/WH On+H1ZjycJgjXwKM01yJ63y9y2ZZ8nxJE1Rq3MHPGIr78eymJnRD8D5829MgO5Iw IUjxGss8FhLud1dfygJn2G0z2hoZ0VMIBQNDC8SGhT+IGk9nnVaCRC5AV2MIvOcQ KB0hn+KUKv+Qw2S84fsrGZ2hyaWRWZhFF3bVW2QnMEW2CMDfeYkOy5NYrrk92uf/ yCFNf05KAvKPiBgF3GQ6PwlbDggpxiVbVes2SAGGxyRD2YBxxOjPpXBAkyn5OB7y K3m6M+Pz1s1JPDAm9Juc3WZNrpXHbKDVdG7gNO0XllL5Wq8qNVdp0H9RNFT9T20= =bXGH -----END PGP SIGNATURE----- --kTjXrgfSbV51jTVbeKaXBdI6d8jqpGU4N--