summaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-12-26 00:26:38 +0100
committerPeter Wu <peter@lekensteyn.nl>2015-01-06 17:51:10 +0100
commit5fbeb7333773dea9148645555d8f83a6ba53847f (patch)
tree0c19c46cb608cb33b54f4dd0cf2d9d5053b9cbf1 /bsd-user
parent6d8d08c7d2116dd74d7847b475fa3081302b7e75 (diff)
downloadqemu-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 'bsd-user')
0 files changed, 0 insertions, 0 deletions