[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 07/31] qcow2: Document the Extended L2 Entries feature
From: |
Alberto Garcia |
Subject: |
Re: [PATCH v5 07/31] qcow2: Document the Extended L2 Entries feature |
Date: |
Wed, 06 May 2020 17:24:18 +0200 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Wed 06 May 2020 05:02:52 PM CEST, Alberto Garcia wrote:
>>> - With version 2, this is always 0.
>>> + With version 2 or with extended L2 entries (see the
>>> next
>>> + section), this is always 0.
>>
>> In your cover letter, you said you changed things to tolerate this
>> bit being set even with extended L2 entries. Does this sentence need
>> a tweak?
>
> Not a bad idea.
I just had a look at what happens with v2 images. There the bit is
actually checked and the image is marked corrupt, but that only seems to
happen in qcow2_get_host_offset(). You can write to a cluster that has
that bit set and QEMU won't complain (the bit is however cleared).
'qemu-img check' does not detect any inconsistency either.
As I said in my cover letter maybe it's worth preparing a separate
series that adds a QCOW2_CLUSTER_INVALID type and includes all these
cases.
Berto
- Re: [PATCH v5 19/31] qcow2: Add subcluster support to calculate_l2_meta(), (continued)
- [PATCH v5 14/31] qcow2: Add QCow2SubclusterType and qcow2_get_subcluster_type(), Alberto Garcia, 2020/05/05
- [PATCH v5 15/31] qcow2: Add qcow2_cluster_is_allocated(), Alberto Garcia, 2020/05/05
- [PATCH v5 17/31] qcow2: Replace QCOW2_CLUSTER_* with QCOW2_SUBCLUSTER_*, Alberto Garcia, 2020/05/05
- [PATCH v5 31/31] iotests: Add tests for qcow2 images with extended L2 entries, Alberto Garcia, 2020/05/05
- [PATCH v5 07/31] qcow2: Document the Extended L2 Entries feature, Alberto Garcia, 2020/05/05
- [PATCH v5 04/31] qcow2: Split cluster_needs_cow() out of count_cow_clusters(), Alberto Garcia, 2020/05/05
- [PATCH v5 23/31] qcow2: Add subcluster support to check_refcounts_l2(), Alberto Garcia, 2020/05/05
- [PATCH v5 25/31] qcow2: Clear the L2 bitmap when allocating a compressed cluster, Alberto Garcia, 2020/05/05
- [PATCH v5 28/31] qcow2: Add the 'extended_l2' option and the QCOW2_INCOMPAT_EXTL2 bit, Alberto Garcia, 2020/05/05
- [PATCH v5 05/31] qcow2: Process QCOW2_CLUSTER_ZERO_ALLOC clusters in handle_copied(), Alberto Garcia, 2020/05/05
- [PATCH v5 26/31] qcow2: Add subcluster support to handle_alloc_space(), Alberto Garcia, 2020/05/05