Re: [Qemu-devel] [PATCH 10/10] block/dmg: improve zeroes handling

2015-01-05 Thread Peter Wu
On Monday 05 January 2015 14:48:03 John Snow wrote: > On 12/27/2014 10:01 AM, Peter Wu wrote: > > 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 t

Re: [Qemu-devel] [PATCH 10/10] block/dmg: improve zeroes handling

2015-01-05 Thread John Snow
On 12/27/2014 10:01 AM, Peter Wu wrote: 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. (

[Qemu-devel] [PATCH 10/10] block/dmg: improve zeroes handling

2014-12-27 Thread Peter Wu
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