qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 01/19] Specification for qcow2 version 3


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 01/19] Specification for qcow2 version 3
Date: Fri, 13 Apr 2012 11:30:41 +0100

On Thu, Apr 12, 2012 at 4:01 PM, Kevin Wolf <address@hidden> wrote:
> +         96 -  99:  refcount_bits
> +                    Size of a reference count block entry in bits. For 
> version 2
> +                    images, the size is always assumed to be 16 bits. The 
> size
> +                    must be a power of two.

"The size must be a power of two"

If refcount_bits is the number of bits then the resulting refcount
block size is always a power of 2.  recount_size = 1 << refcount_bits.

Do you want to drop this statement?  Just want to check that I'm
understanding the spec correctly.

>  The remaining space between the end of the header extension area and the end 
> of
> -the first cluster can be used for other data. Usually, the backing file name 
> is
> -stored there.
> +the first cluster can be used for the backing file name. It is not allowed to
> +store other data here, so that an implementation can safely modify the header
> +and add extensions without harming data of compatible features that it
> +doesn't support. Compatible features that need space for additional data can
> +use a header extension.

Does this change the spec for qcow2 version 2?  Previously anything
could be after the header extension area, now this has been changed so
only the backing filename is allowed (for safe modification).  In
practice this should be okay but in theory I think this is changes the
qcow2 version 2 semantics.

> +               1:   Bit number within the selected feature bitmap

I suggest explicitly stating the valid range: 0-63

> -If a cluster is unallocated, read requests shall read the data from the 
> backing
> -file. If there is no backing file or the backing file is smaller than the 
> image,
> +If a cluster or a subcluster is unallocated, read requests shall read the 
> data

I think "subcluster" is from an older version of this spec change
because the subcluster feature is not part of this patch series.

Stefan



reply via email to

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