Re: [Qemu-devel] [PATCH 1/4] qcow2: Fix preallocation size formula

2017-05-03 Thread Eric Blake
On 05/03/2017 06:11 PM, Max Reitz wrote: > When calculating the number of reftable entries, we should actually use > the number of refblocks and not (wrongly[1]) re-calculate it. > > [1] "Wrongly" means: Dividing the number of clusters by the number of > entries per refblock and rounding down

[Qemu-devel] [PATCH 1/4] qcow2: Fix preallocation size formula

2017-05-03 Thread Max Reitz
When calculating the number of reftable entries, we should actually use the number of refblocks and not (wrongly[1]) re-calculate it. [1] "Wrongly" means: Dividing the number of clusters by the number of entries per refblock and rounding down instead of up. Reported-by: Eric Blake Signed-off