diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-12-26 00:26:38 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2015-01-06 17:51:10 +0100 |
commit | 5fbeb7333773dea9148645555d8f83a6ba53847f (patch) | |
tree | 0c19c46cb608cb33b54f4dd0cf2d9d5053b9cbf1 /qobject | |
parent | 6d8d08c7d2116dd74d7847b475fa3081302b7e75 (diff) | |
download | qemu-block-dmg-2.3-v2.tar.gz |
block/dmg: improve zeroes handlingblock-dmg-2.3-v2
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 'qobject')
0 files changed, 0 insertions, 0 deletions