From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc5Aa-0004nu-7w for qemu-devel@nongnu.org; Thu, 09 Oct 2014 00:17:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xc5AV-0001ro-Ao for qemu-devel@nongnu.org; Thu, 09 Oct 2014 00:17:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xc5AV-0001ri-1H for qemu-devel@nongnu.org; Thu, 09 Oct 2014 00:17:35 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s994HYLC011093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 9 Oct 2014 00:17:34 -0400 Message-ID: <54360C5D.5010006@redhat.com> Date: Wed, 08 Oct 2014 22:17:33 -0600 From: Eric Blake MIME-Version: 1.0 References: <1408215258-12545-1-git-send-email-mreitz@redhat.com> <1408215258-12545-3-git-send-email-mreitz@redhat.com> In-Reply-To: <1408215258-12545-3-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Du3uqtcABffvA8At8rPf3h4ohSI8OXcmf" Subject: Re: [Qemu-devel] [PATCH 2/3] qemu-io: Respect early image end for map List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz , qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Du3uqtcABffvA8At8rPf3h4ohSI8OXcmf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 08/16/2014 12:54 PM, Max Reitz wrote: > bdrv_is_allocated() may report zero clusters which most probably means > the image (file) is shorter than expected. Respect this case in order t= o > avoid an infinite loop. >=20 > Signed-off-by: Max Reitz > --- > qemu-io-cmds.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --Du3uqtcABffvA8At8rPf3h4ohSI8OXcmf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUNgxdAAoJEKeha0olJ0NqrDoIAKZF3EliTAdI9r9F635AKAhn byylI+9zg4NdohldBg4h6D2FrvcMNKHxHu9jEJELJ5GcairHsTTkLUNm2ioY2d8o 1khbE4pOqBXn8p8+NiTawZPTqCOjLaTWhRweUWCfwfs1nXud3jSCsiyRv8nlHGFt 9JPzHGl9TMuSs4YFXglD81Jn60ickMH4lLU2CpzQ25/WaTBIgQaqAVyPzjOvWyCl SX0+Cwk4SLcKzhRtphVtZKVZCmcrseo+zAyQyHkbxXzuXmqTyvNNr4kqszz4vKSr ZbMO0bD3R2WiqDDuPcPPtZaVOXYqhNuk5DEYbwdtH36rWlkW3RXixK5518OUL10= =f2mf -----END PGP SIGNATURE----- --Du3uqtcABffvA8At8rPf3h4ohSI8OXcmf--