diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2013-04-15 17:17:32 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-04-22 10:27:58 +0200 |
commit | 16b3c5cd9f27678bc9d6707664640653b47533b9 (patch) | |
tree | f651cee5296cf7f98e270b87854dda286b40c43d /qemu-options.h | |
parent | f4d38bef7cc79018e2aa789b0e4c23c3a8cdfca5 (diff) |
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 'qemu-options.h')
0 files changed, 0 insertions, 0 deletions