From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLbtL-0005BL-Cd for qemu-devel@nongnu.org; Wed, 11 Feb 2015 13:20:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLbtG-0007QK-Vw for qemu-devel@nongnu.org; Wed, 11 Feb 2015 13:20:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLbtG-0007QE-NF for qemu-devel@nongnu.org; Wed, 11 Feb 2015 13:19:58 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1BIJwa5020107 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Wed, 11 Feb 2015 13:19:58 -0500 Message-ID: <54DB9D4D.3030009@redhat.com> Date: Wed, 11 Feb 2015 11:19:57 -0700 From: Eric Blake MIME-Version: 1.0 References: <1423600146-7642-1-git-send-email-mreitz@redhat.com> <1423600146-7642-8-git-send-email-mreitz@redhat.com> In-Reply-To: <1423600146-7642-8-git-send-email-mreitz@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9IfqM8LE9ujmcfXQfSUe23bsgKWw6UTVN" Subject: Re: [Qemu-devel] [PATCH v6 07/24] qcow2: Helper for refcount array reallocation 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) --9IfqM8LE9ujmcfXQfSUe23bsgKWw6UTVN Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 02/10/2015 01:28 PM, Max Reitz wrote: > Add a helper function for reallocating a refcount array, independent of= > the refcount order. The newly allocated space is zeroed and the functio= n > handles failed reallocations gracefully. >=20 > The helper function will always align the buffer size to a cluster > boundary; if storing the refcounts in such an array in big endian byte > order, this makes it possible to write parts of the array directly as > refcount blocks into the image file. >=20 > Signed-off-by: Max Reitz > --- > block/qcow2-refcount.c | 130 ++++++++++++++++++++++++++++++-----------= -------- > 1 file changed, 81 insertions(+), 49 deletions(-) >=20 Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --9IfqM8LE9ujmcfXQfSUe23bsgKWw6UTVN 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 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJU251NAAoJEKeha0olJ0Nq5sUIAJMY3rVpBBn6ZH3sd0Fd4/Sz uiMMxZUkiomUcqxvEzYtyVMRtNks97mv3Z7+GFVsRO87VzD4PM+KBjOR7ZNpdCTo yMu1Mpd7Dyzglx0kroX1tr9FyUdy1/BaaKyGoaJPDc5k5de1GsiiDz/QFYxJQCqT aC45PKffZOHs2a423ajXf/mkE2SyN4mE318nCvtWkeG/GAtMF8C6Inb63nUNt2F0 LCMshxQJNz5gMt5RJvZVMnxdqnl8PFYTjNn3+fmrupLJQRXx9FPUDeQC71WmPSKF 9WONec5oLQH8N4jzvVDKMjJS8NG7dSEEHkRAVc8dNfrMN8OW1tOPr1jVrHOjJ60= =a9Lx -----END PGP SIGNATURE----- --9IfqM8LE9ujmcfXQfSUe23bsgKWw6UTVN--