Files
qemu-ios/block
Peter Lieven 4d2f39a918 qcow2: fix possible corruption when reading multiple clusters
if multiple sectors spanning multiple clusters are read the
function count_contiguous_clusters should ensure that the
cluster type should not change between the clusters.

Especially the for-loop should break when we have one
or more normal clusters followed by a compressed cluster.

Unfortunately the wrong macro was used in the mask to
compare the flags.

This was discovered while debugging a data corruption
issue when converting a compressed qcow2 image to raw.
qemu-img reads 2MB chunks which span multiple clusters.

CC: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 78a52ad5ac)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2013-12-09 11:40:30 -06:00
..
2013-06-28 09:20:27 +02:00
2013-07-29 17:07:37 +02:00
2013-06-28 09:20:27 +02:00
2013-06-24 10:25:17 +02:00
2013-01-15 10:03:47 +01:00
2013-08-12 09:15:11 -05:00
2013-12-03 14:08:26 -06:00
2013-06-28 10:21:00 +02:00