Re: [Qemu-block] [Qemu-devel] [PATCH v5 14/18] qcow2: Switch qcow2_measure() to byte-based iteration

2017-07-14 Thread Eric Blake
On 07/13/2017 01:49 PM, John Snow wrote: > > > On 07/12/2017 09:05 PM, Eric Blake wrote: >> This is new code, but it is easier to read if it makes passes over >> the image using bytes rather than sectors (and will get easier in >> the future when bdrv_get_block_status is converted to

Re: [Qemu-block] [Qemu-devel] [PATCH v5 14/18] qcow2: Switch qcow2_measure() to byte-based iteration

2017-07-13 Thread John Snow
On 07/12/2017 09:05 PM, Eric Blake wrote: > This is new code, but it is easier to read if it makes passes over > the image using bytes rather than sectors (and will get easier in > the future when bdrv_get_block_status is converted to byte-based). > > While at it, fix a bug in the computation