summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStefan Hajnoczi2013-04-15 17:17:32 +0200
committerKevin Wolf2013-04-22 10:27:58 +0200
commit16b3c5cd9f27678bc9d6707664640653b47533b9 (patch)
treef651cee5296cf7f98e270b87854dda286b40c43d /include
parentqcow2: allow sub-cluster compressed write to last cluster (diff)
downloadqemu-16b3c5cd9f27678bc9d6707664640653b47533b9.tar.gz
qemu-16b3c5cd9f27678bc9d6707664640653b47533b9.tar.xz
qemu-16b3c5cd9f27678bc9d6707664640653b47533b9.zip
qcow: allow sub-cluster compressed write to last cluster
Compression in qcow requires image length to be a multiple of the cluster size. Lift this requirement by zero-padding the final cluster when necessary. The virtual disk size is still not cluster-aligned, so the guest cannot access the zero sectors. Note that this is almost identical to the qcow2 version of this code. qcow2's compression code is drawn from qcow. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions