[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH] block/vpc: Fix conversion from size to disk geo
From: |
Kevin Wolf |
Subject: |
[Qemu-devel] Re: [PATCH] block/vpc: Fix conversion from size to disk geometry |
Date: |
Tue, 11 May 2010 11:46:31 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4 |
Am 10.05.2010 21:46, schrieb Stefan Weil:
> 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 <address@hidden>
> Signed-off-by: Stefan Weil <address@hidden>
Thanks, applied to the block branch.
Kevin