From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNYR2-0002k4-Vn for qemu-devel@nongnu.org; Thu, 06 Aug 2015 23:35:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNYR2-0002u7-41 for qemu-devel@nongnu.org; Thu, 06 Aug 2015 23:35:08 -0400 References: <1438012300-25164-1-git-send-email-mreitz@redhat.com> <1438012300-25164-9-git-send-email-mreitz@redhat.com> From: Eric Blake Message-ID: <55C4275C.50403@redhat.com> Date: Thu, 6 Aug 2015 21:34:52 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xjv2fV6jowB2udBsNrK9M8c3t01fHwjJD" Subject: Re: [Qemu-devel] [PATCH v9 08/10] qcow2: Invoke refcount order amendment function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , Max Reitz , qemu-block@nongnu.org Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --xjv2fV6jowB2udBsNrK9M8c3t01fHwjJD Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 08/06/2015 09:10 AM, Alberto Garcia wrote: > On Mon 27 Jul 2015 05:51:38 PM CEST, Max Reitz wrote: >=20 >> + if (refcount_bits <=3D 0 || refcount_bits > 64 || >> + !is_power_of_2(refcount_bits)) >> + { >> + error_report("Refcount width must be a power of two a= nd may " >> + "not exceed 64 bits"); >> + return -EINVAL; >> + } >=20 > I guess there's no lower limit needed for this? Doesn't it break > anything if refcount_bits =3D=3D 1? refcount_bits =3D=3D 1 works just fine - you have an image that can't tak= e internal snapshots, and has a maximally dense refblock. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --xjv2fV6jowB2udBsNrK9M8c3t01fHwjJD 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/ iQEcBAEBCAAGBQJVxCdcAAoJEKeha0olJ0NqIsEH+gKzBmrClXYPos+2h2k4s/7t KgKbitqm9OurlKRi/XIvSqh1qEmVUAvOyMbqu01BRKYamnH17iZer+UUc/xHvuJ8 DuwYvysCzMFJCCkxj5Gdc2rOnheQi5f6gCffdf8/moGbzqOi0DgHyjAUpSslb+Tz UFn87gnOIcdKiDEJD8N8aoPursg/1uOk/I6fijRZXE7IQlFFS1VqTa9Z86ujA5OJ Z46qBmMBdeoQEmdrw/Q7lUT1G0M40R2Nh7yqKxDE3APY0+CUgBNWuHhCqyfqZnM2 6dsQGmgmXEWks1ldMN/JbFMOwuWF1mb7KOEQHO5c8dmOYVIqqjz50Ufnk/LeNQE= =xCzh -----END PGP SIGNATURE----- --xjv2fV6jowB2udBsNrK9M8c3t01fHwjJD--