Re: [Qemu-devel] [PATCH] specs/qcow2: Fix documentation of the compressed cluster descriptor

2018-02-20 Thread Eric Blake
On 02/20/2018 08:15 AM, Alberto Garcia wrote: The documentation claims that the cluster descriptor contains the number of sectors used to store the compressed data, but what it actually contains is the number of sectors *minus one*. That can be easily seen in qcow2_decompress_cluster(), that add

[Qemu-devel] [PATCH] specs/qcow2: Fix documentation of the compressed cluster descriptor

2018-02-20 Thread Alberto Garcia
The documentation claims that the cluster descriptor contains the number of sectors used to store the compressed data, but what it actually contains is the number of sectors *minus one*. That can be easily seen in qcow2_decompress_cluster(), that adds one to the value stored in that field: nb_c