Received: from eggs.gnu.org ([2001:4830:134:3::10]:33487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIJNx-0004DX-9G for qemu-devel@nongnu.org; Wed, 29 Jun 2016 13:34:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIJNv-0008D8-6B for qemu-devel@nongnu.org; Wed, 29 Jun 2016 13:34:48 -0400 References: <1467202967-497386-1-git-send-email-vsementsov@virtuozzo.com> <5773CC1F.7020802@virtuozzo.com> From: Max Reitz Message-ID: <674bb34f-94dc-980b-c3a3-54a970b2155d@redhat.com> Date: Wed, 29 Jun 2016 19:34:36 +0200 MIME-Version: 1.0 In-Reply-To: <5773CC1F.7020802@virtuozzo.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="XVTTexc8H85NR8lduKD9AnfUlL1UUQhei" Subject: Re: [Qemu-devel] [PATCH] spec/qcow2: bitmaps: zero bitmap table offset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Sementsov-Ogievskiy , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, den@openvz.org, kwolf@redhat.com, eblake@redhat.com, jsnow@redhat.com, stefanha@redhat.com, famz@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XVTTexc8H85NR8lduKD9AnfUlL1UUQhei From: Max Reitz To: Vladimir Sementsov-Ogievskiy , qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, den@openvz.org, kwolf@redhat.com, eblake@redhat.com, jsnow@redhat.com, stefanha@redhat.com, famz@redhat.com Message-ID: <674bb34f-94dc-980b-c3a3-54a970b2155d@redhat.com> Subject: Re: [PATCH] spec/qcow2: bitmaps: zero bitmap table offset References: <1467202967-497386-1-git-send-email-vsementsov@virtuozzo.com> <5773CC1F.7020802@virtuozzo.com> In-Reply-To: <5773CC1F.7020802@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 29.06.2016 15:24, Vladimir Sementsov-Ogievskiy wrote: > On 29.06.2016 15:22, Vladimir Sementsov-Ogievskiy wrote: >> This allows effectively free in_use bitmap clusters including bitmap >> table without loss of meaningful data. I'm afraid I fail to understand this sentence. >> >> Now it is possible only to free end-point clusters and zero-out (not >> free) bitmap table OK, so the idea is not having to store a bitmap table if the bitmap is fully zeroed? >> >> Signed-off-by: Vladimir Sementsov-Ogievskiy = >> --- >> >> Hi all! >> >> Here is one small but significant addition to specification of bitmaps= >> in qcow2. >> >> Can we apply it just like this or I'll have to inroduce new >> incompatible feature flag? I think it should be fine without a flag. >> >> If there is existing implementation of the format, it may break image,= >> saved by >> software, using extended spec. But is there are any implementations >> except not >> finished my one? >> >> >> docs/specs/qcow2.txt | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/docs/specs/qcow2.txt b/docs/specs/qcow2.txt >> index 80cdfd0..dd07a82 100644 >> --- a/docs/specs/qcow2.txt >> +++ b/docs/specs/qcow2.txt >> @@ -435,6 +435,8 @@ Structure of a bitmap directory entry: >> Offset into the image file at which the bitmap >> table >> (described below) for the bitmap starts. Must be= >> aligned to >> a cluster boundary. >> + Zero value means that bitmap table is not >> allocated and the >> + bitmap should be considered as empty (all bits >> are zero). >> 8 - 11: bitmap_table_size >> Number of entries in the bitmap table of the >> bitmap. >=20 > + bitmap_table_size must be zero if bitmap_table_size is > zero. The second bitmap_table_size should probably be bitmap_table_offset. The idea looks good to me, but I'd rather understand the commit message before giving an R-b. :-) Max --XVTTexc8H85NR8lduKD9AnfUlL1UUQhei 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 iQEvBAEBCAAZBQJXdAatEhxtcmVpdHpAcmVkaGF0LmNvbQAKCRA7sUIC6DisrUll B/4wXzbip6/4EghcLI8Eb7B1J2AD6kfmYn57w4BXNoxyYRQ9fkBoEwKwVJyYlv2+ wuJPu70Z8kFsqmdtaW6Hx4DV6tR51UkHO46iMNBqrxUgJxJWcx6UBSP853iivIfk MrV/GWvn7JTuRBenYNzEnL25TPR+crHzsDZxxAOFmSn0Ck8+ciA4zZFL9jSHxJwD mxYY1F5rAoMOQ9J7rdI6mwLKad4n7l/aOwcn8bqgxFaUld1598VSA4U1tzJraFyA gFfwN6u8fzUZ5o/4MWVKu4uHzVQ5nZ3hN95TslGts5JxX06C41n6oEo102x6T/p2 XxQ7+uR0bscBR0Nb+u1pPppb =J8dy -----END PGP SIGNATURE----- --XVTTexc8H85NR8lduKD9AnfUlL1UUQhei--