aboutsummaryrefslogtreecommitdiff
path: root/roms
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-11-04 18:16:24 +0100
committerMax Reitz <mreitz@redhat.com>2015-11-11 16:55:29 +0100
commita99dfb45f26bface6830ee5465e57bcdbc53c6c8 (patch)
treee6d948e6c24c2e01fc0c1316b172e916328e6123 /roms
parent342075fd0ec9dce87139d71a81e1dbbe5ab5d021 (diff)
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>
Diffstat (limited to 'roms')
0 files changed, 0 insertions, 0 deletions