From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zu3k8-0003sJ-VB for qemu-devel@nongnu.org; Wed, 04 Nov 2015 14:29:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zu3k8-00082h-5s for qemu-devel@nongnu.org; Wed, 04 Nov 2015 14:29:12 -0500 References: <1446657384-5907-1-git-send-email-kwolf@redhat.com> From: Max Reitz Message-ID: <563A5C7C.3040900@redhat.com> Date: Wed, 4 Nov 2015 20:29:00 +0100 MIME-Version: 1.0 In-Reply-To: <1446657384-5907-1-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="jFvML93NKCHWTVBtvgsT5heMIDcCbEAmw" Subject: Re: [Qemu-devel] [PATCH] qcow2: Fix qcow2_get_cluster_offset() for zero clusters List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, qemu-stable@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jFvML93NKCHWTVBtvgsT5heMIDcCbEAmw Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 04.11.2015 18:16, Kevin Wolf wrote: > When searching for contiguous zero clusters, we only need to check the > cluster type. Before this patch, an increasing offset (L2E_OFFSET_MASK)= > was expected, so that the function never returned more than a single > zero cluster in practice. This patch fixes it to actually return as man= y > contiguous zero clusters as it can. >=20 > Cc: qemu-stable@nongnu.org > Signed-off-by: Kevin Wolf > --- > block/qcow2-cluster.c | 15 +++++++++------ > 1 file changed, 9 insertions(+), 6 deletions(-) Thanks, applied to my block tree: https://github.com/XanClic/qemu/commits/block --jFvML93NKCHWTVBtvgsT5heMIDcCbEAmw 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 iQEcBAEBCAAGBQJWOlx8AAoJEDuxQgLoOKytUJ0H/RYMUNBpLWrEA6tGYQTyeIa1 V51camke6usxfrhJKHjfSWFyRh/l+MolObJR8oZUjn+BNzBxHa2NOIvS9SSNeXdj B9H6d0KT91+fCG4VLCxOEum/DVtN9pkIs7e139o29inJ7Fb+wGQI0pdx4oqgq2n9 H12i03zgOeHbV9paZ7MCFijYh+eAhRIWtbcto3G2SOWQ3e0e8q+wu/ncGtkZGxAn 7cYqDPuTc6Qo7soA7sIZs1VoE5WnPIOM4QWwCksdgbFbjYkBhFtiG/PL1rhPPZ/V ix0zRm8ZXpUenWGM3/U/Uor8KGoQ5emT3MQoAzhm46mZythn9mQT7oXvXeesZPQ= =drQq -----END PGP SIGNATURE----- --jFvML93NKCHWTVBtvgsT5heMIDcCbEAmw--