summaryrefslogtreecommitdiff
path: root/qemu-img-cmds.hx
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-12-26 00:26:38 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-12-27 15:47:24 +0100
commitc090e0700e4403d084423f56990b85749c62a829 (patch)
tree1c42ba4f25b0b4c7872a94c5f00055547d1c1a7e /qemu-img-cmds.hx
parentbae85ae6bf66bd2c40cdf27ea61fc507d624bf61 (diff)
downloadqemu-c090e0700e4403d084423f56990b85749c62a829.tar.gz
block/dmg: improve zeroes handling
Disk images may contain large all-zeroes gaps (1.66k sectors or 812 MiB is seen in the real world). These blocks (type 2) do not need to be extracted into a temporary buffer, there is no need to allocate memory for these blocks nor to check its length. (For the test image, the maximum uncompressed size is 1054371 bytes, probably for a bzip2-compressed block.) Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'qemu-img-cmds.hx')
0 files changed, 0 insertions, 0 deletions