diff options
| author | Stefan Hajnoczi | 2013-04-15 17:17:33 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2013-04-22 10:27:58 +0200 |
| commit | 54f106d5fd51fcf385bab2ddf125477e83758038 (patch) | |
| tree | e76e619f264a1dbf6b636aa56def8814f6604380 /include | |
| parent | qcow: allow sub-cluster compressed write to last cluster (diff) | |
| download | qemu-54f106d5fd51fcf385bab2ddf125477e83758038.tar.gz qemu-54f106d5fd51fcf385bab2ddf125477e83758038.tar.xz qemu-54f106d5fd51fcf385bab2ddf125477e83758038.zip | |
qemu-img: do not zero-pad the compressed write buffer
bdrv_write_compressed() does not allow requests that span the end of the
device. Therefore it is useless to zero-pad the last cluster and
thereby exceed the end of the device.
Let image formats handle zero-padding the final compressed cluster, if
necessary.
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
