]> git.proxmox.com Git - mirror_qemu.git/commit
vpc: Round up image size during fixed image creation
authorKevin Wolf <kwolf@redhat.com>
Tue, 7 Feb 2012 09:15:47 +0000 (10:15 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 9 Feb 2012 15:17:51 +0000 (16:17 +0100)
commitecd880d9eeb59a0148d4761698448245ec4306e0
treefb65bb5a592b41ed957d20260e0ee53c5d62ec33
parent24da78dbb54b61fa299919c89709270fad5e682d
vpc: Round up image size during fixed image creation

The geometry calculation algorithm from the VHD spec rounds the image
size down if it doesn't exactly match a geometry. During image
conversion, this causes the image to be truncated. For dynamic images,
we already have code in place to round up instead, let's do the same for
fixed images.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vpc.c