qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 13/30] qcow2: Add QCow2SubclusterType and qcow2_get_subclu


From: Max Reitz
Subject: Re: [PATCH v4 13/30] qcow2: Add QCow2SubclusterType and qcow2_get_subcluster_type()
Date: Thu, 9 Apr 2020 10:22:42 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0

On 08.04.20 19:46, Alberto Garcia wrote:
> On Wed 08 Apr 2020 01:23:42 PM CEST, Max Reitz wrote:
>>> +        switch (type) {
>>> +        case QCOW2_CLUSTER_COMPRESSED:
>>> +            return QCOW2_SUBCLUSTER_COMPRESSED;
>>
>> Why did you drop the check that l2_bitmap == 0 here?
> 
> We don't generally check that reserved bits are 0. It would for example
> allow us to add a new compatible feature in the future using those bits.

OK.  The spec as you wrote it would allow that, and if we ever used
those bits we’d probably need to add a feature bit to the header anyway.
 (More so if we returned an error here.)

Reviewed-by: Max Reitz <address@hidden>

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]