Re: [Qemu-block] [PATCH v2] iotests: Test abnormally large size in compressed cluster descriptor

2018-02-26 Thread Alberto Garcia
On Fri 23 Feb 2018 02:30:14 PM CET, Eric Blake wrote: >> One possible task for the future is to make 'qemu-img check' verify >> the sizes of the compressed clusters, by trying to decompress the data >> and checking that the size stored in the L2 entry is correct. > > Indeed, but that means... > >>

Re: [Qemu-block] [PATCH v2] iotests: Test abnormally large size in compressed cluster descriptor

2018-02-23 Thread Eric Blake
On 02/23/2018 06:50 AM, Alberto Garcia wrote: L2 entries for compressed clusters have a field that indicates the number of sectors used to store the data in the image. That's however not the size of the compressed data itself, just the number of sectors where that data is located. The actual

[Qemu-block] [PATCH v2] iotests: Test abnormally large size in compressed cluster descriptor

2018-02-23 Thread Alberto Garcia
L2 entries for compressed clusters have a field that indicates the number of sectors used to store the data in the image. That's however not the size of the compressed data itself, just the number of sectors where that data is located. The actual data size is usually not a multiple of the sector