]> Git Repo - qemu.git/commit - qemu-img.c
qemu-img: do not zero-pad the compressed write buffer
authorStefan Hajnoczi <[email protected]>
Mon, 15 Apr 2013 15:17:33 +0000 (17:17 +0200)
committerKevin Wolf <[email protected]>
Mon, 22 Apr 2013 08:27:58 +0000 (10:27 +0200)
commit54f106d5fd51fcf385bab2ddf125477e83758038
treee76e619f264a1dbf6b636aa56def8814f6604380
parent16b3c5cd9f27678bc9d6707664640653b47533b9
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 <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
qemu-img.c
This page took 0.022296 seconds and 4 git commands to generate.