From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPv2o-0003wf-G9 for qemu-devel@nongnu.org; Fri, 05 Sep 2014 11:03:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPv2j-0006O1-Gr for qemu-devel@nongnu.org; Fri, 05 Sep 2014 11:03:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPv2j-0006Nm-8T for qemu-devel@nongnu.org; Fri, 05 Sep 2014 11:03:17 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s85F3GiR008831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 5 Sep 2014 11:03:16 -0400 Message-ID: <5409D0B3.205@redhat.com> Date: Fri, 05 Sep 2014 09:03:15 -0600 From: Eric Blake MIME-Version: 1.0 References: <1409926039-29044-1-git-send-email-mreitz@redhat.com> <1409926039-29044-5-git-send-email-mreitz@redhat.com> In-Reply-To: <1409926039-29044-5-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wpA13vsOLMrBDGHRKDjAD6axWpnc0Rngx" Subject: Re: [Qemu-devel] [PATCH v2 4/5] qcow2: Check L1/L2/reftable entries for alignment 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) --wpA13vsOLMrBDGHRKDjAD6axWpnc0Rngx Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09/05/2014 08:07 AM, Max Reitz wrote: > Offsets taken from the L1, L2 and refcount tables are generally assumed= > to be correctly aligned. However, this cannot be guaranteed if the imag= e > has been written to by something different than qemu, thus check all > offsets taken from these tables for correct cluster alignment. >=20 > Signed-off-by: Max Reitz > --- > block/qcow2-cluster.c | 43 ++++++++++++++++++++++++++++++++++++++++--= - > block/qcow2-refcount.c | 44 ++++++++++++++++++++++++++++++++++++++++++= -- > 2 files changed, 82 insertions(+), 5 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --wpA13vsOLMrBDGHRKDjAD6axWpnc0Rngx 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 iQEcBAEBCAAGBQJUCdCzAAoJEKeha0olJ0NqPZwIAJd89Alu3IB8NKZyVbXRuqWR Rse7lCfacNwpi47E7o+jdYsF2aAo60zHRtMylX4DI0tvB5BpOhzCIvaIFT/IIRGU +wnUYXnxp9PsEHxD/X9k7mqSx4XwQwXj7X5MdEebIZ/DHBnzcRO4ZaDE/0P+XG16 SV//3XX6WqwlaOg1xGLVtjG67XbNk0mGZ9hRU2oqwucHvsYQx/adAjQ11yCZPbo0 sdr9jBwchcxvAVp0SZ++kbWQ8TSujOf3N9SMdA8ePTTxnqz8iTqVh0rm9vmNPgXD rFdQ4sYqYBOnkASvCsbzNSFpXlDHostOSWLyPnl5OvxqxdVSm6ZWNOnax0wFOJo= =+kKn -----END PGP SIGNATURE----- --wpA13vsOLMrBDGHRKDjAD6axWpnc0Rngx--