summaryrefslogtreecommitdiff
path: root/block/qcow2.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2017-05-06 19:05:51 -0500
committerMax Reitz <mreitz@redhat.com>2017-05-11 14:28:07 +0200
commitf10ee139adee1c18d399dc57a7ee22a03fa59513 (patch)
tree040ae8f4828cb2e0d5a384ea48ea75b21743fa6b /block/qcow2.c
parentfbaa6bb3d3b4be71b7e234e908cb3c6bd280a222 (diff)
downloadqemu-f10ee139adee1c18d399dc57a7ee22a03fa59513.tar.gz
qcow2: Assert that cluster operations are aligned
We already audited (in commit 0c1bd469) that qcow2_discard_clusters() is only passed cluster-aligned start values; but we can further tighten the assertion that the only unaligned end value is at EOF. Recent commits have taken advantage of an unaligned tail cluster, for both discard and write zeroes. Signed-off-by: Eric Blake <eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 20170507000552.20847-12-eblake@redhat.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/qcow2.c')
0 files changed, 0 insertions, 0 deletions