[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v3 09/27] qcow2: Add l2_entry_size()
From: |
Max Reitz |
Subject: |
Re: [RFC PATCH v3 09/27] qcow2: Add l2_entry_size() |
Date: |
Thu, 20 Feb 2020 17:24:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 22.12.19 12:36, Alberto Garcia wrote:
> qcow2 images with subclusters have 128-bit L2 entries. The first 64
> bits contain the same information as traditional images and the last
> 64 bits form a bitmap with the status of each individual subcluster.
>
> Because of that we cannot assume that L2 entries are sizeof(uint64_t)
> anymore. This function returns the proper value for the image.
>
> Signed-off-by: Alberto Garcia <address@hidden>
> ---
> block/qcow2-cluster.c | 12 ++++++------
> block/qcow2-refcount.c | 14 ++++++++------
> block/qcow2.c | 8 ++++----
> block/qcow2.h | 9 +++++++++
> 4 files changed, 27 insertions(+), 16 deletions(-)
Assuming qcow2_calc_prealloc_size() and qcow2_measure are fixed up in
patch 26:
Reviewed-by: Max Reitz <address@hidden>
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [RFC PATCH v3 09/27] qcow2: Add l2_entry_size(),
Max Reitz <=