summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorEric Blake2017-05-07 02:05:51 +0200
committerMax Reitz2017-05-11 14:28:07 +0200
commitf10ee139adee1c18d399dc57a7ee22a03fa59513 (patch)
tree040ae8f4828cb2e0d5a384ea48ea75b21743fa6b /include/exec
parentqcow2: Optimize write zero of unaligned tail cluster (diff)
downloadqemu-f10ee139adee1c18d399dc57a7ee22a03fa59513.tar.gz
qemu-f10ee139adee1c18d399dc57a7ee22a03fa59513.tar.xz
qemu-f10ee139adee1c18d399dc57a7ee22a03fa59513.zip
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 'include/exec')
0 files changed, 0 insertions, 0 deletions