Files
qemu-ios/block
Stefan Weil 39187b5192 block/vpc: Fix conversion from size to disk geometry
The VHD algorithm calculates a disk geometry
which is usually smaller than the requested size.

QEMU tried to round up but failed for certain sizes:

qemu-img create -f vpc disk.vpc 9437184
would create an image with 9435136 bytes
(which is too small for qemu-img convert).

Instead of hacking the geometry algorithm, the patch
increases the number of sectors until we get enough
sectors.

Cc: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit dede4188cc)
2010-07-14 11:46:22 +02:00
..
2010-01-12 13:31:21 -06:00
2010-07-14 10:33:49 +02:00
2010-02-23 14:07:57 -06:00
2009-07-10 13:44:29 -05:00
2010-07-14 10:41:09 +02:00