diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-05-10 21:46:26 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-05-17 10:20:05 +0200 |
commit | dede4188cc817a039154ed2ecd7f3285f6b94056 (patch) | |
tree | feb149a637b87e6c655eddeead53d243ad6c3c77 /block/dmg.c | |
parent | 1dec5a70973bde6138d7cf30e98e12a49397abf4 (diff) |
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>
Diffstat (limited to 'block/dmg.c')
0 files changed, 0 insertions, 0 deletions