Re: [Qemu-devel] [PATCH] qcow2: count_contiguous_clusters and compression

2013-09-27 Thread Kevin Wolf
Am 25.09.2013 um 17:47 hat Max Reitz geschrieben: > The function is not intended to be used on compressed clusters and will > not work correctly, if used anyway, since L2E_OFFSET_MASK is not the > right mask for determining the offset of compressed clusters. Therefore, > assert that the first clust

[Qemu-devel] [PATCH] qcow2: count_contiguous_clusters and compression

2013-09-25 Thread Max Reitz
The function is not intended to be used on compressed clusters and will not work correctly, if used anyway, since L2E_OFFSET_MASK is not the right mask for determining the offset of compressed clusters. Therefore, assert that the first cluster is not compressed and always include the compression fl