[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:02:52 +0200 |
User-agent: |
Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (i586-pc-linux-gnu) |
On Tue 05 May 2020 09:35:06 PM CEST, Eric Blake wrote:
> On 5/5/20 12:38 PM, Alberto Garcia wrote:
>> Subcluster allocation in qcow2 is implemented by extending the
>> existing L2 table entries and adding additional information to
>> indicate the allocation status of each subcluster.
>>
>> This patch documents the changes to the qcow2 format and how they
>> affect the calculation of the L2 cache size.
>>
>> Signed-off-by: Alberto Garcia <address@hidden>
>> Reviewed-by: Max Reitz <address@hidden>
>> ---
>> docs/interop/qcow2.txt | 68 ++++++++++++++++++++++++++++++++++++++++--
>> docs/qcow2-cache.txt | 19 +++++++++++-
>> 2 files changed, 83 insertions(+), 4 deletions(-)
>>
>
>> @@ -547,7 +557,8 @@ Standard Cluster Descriptor:
>> nor is data read from the backing file if the cluster
>> is
>> unallocated.
>>
>> - 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.
>> +The last 64 bits contain a subcluster allocation bitmap with this format:
>> +
>> +Subcluster Allocation Bitmap (for standard clusters):
>> +
>> + Bit 0 - 31: Allocation status (one bit per subcluster)
>
> Why two spaces after '-'?
No reason, I guess I just didn't notice. I'll fix it.
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