Kevin Wolf a99dfb45f2 qcow2: Fix qcow2_get_cluster_offset() for zero clusters
When searching for contiguous zero clusters, we only need to check the
cluster type. Before this patch, an increasing offset (L2E_OFFSET_MASK)
was expected, so that the function never returned more than a single
zero cluster in practice. This patch fixes it to actually return as many
contiguous zero clusters as it can.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1446657384-5907-1-git-send-email-kwolf@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
2015-11-11 16:55:29 +01:00
..
2015-11-11 16:55:28 +01:00
2015-10-16 15:34:29 +02:00
2015-10-16 15:34:29 +02:00
2015-11-11 16:25:47 +01:00
2015-10-16 15:34:29 +02:00
2015-11-02 08:30:27 +01:00
2015-04-28 15:36:09 +02:00
2015-10-16 15:34:30 +02:00
2015-10-16 15:34:29 +02:00
2015-07-14 17:15:23 +02:00
2014-08-15 15:07:14 +02:00
2015-10-16 15:34:29 +02:00
2015-11-02 08:30:27 +01:00
2015-10-16 15:34:29 +02:00
2015-10-16 15:34:30 +02:00