[Qemu-devel] [PATCH] vdi: Fix image opening and creation for odd disk sizes

2010-05-10 Thread Stefan Weil
The fix is based on a patch from Kevin Wolf. Here his comment: "The number of blocks needs to be rounded up to cover all of the virtual hard disk. Without this fix, we can't even open our own images if their size is not a multiple of the block size." While Kevin's patch addressed vdi_create, my m

[Qemu-devel] [PATCH] vdi: Fix image opening and creation for odd disk sizes

2010-05-06 Thread Stefan Weil
This patch fixes a regression introduced by commit 95a2f9bc588c3f83375d87b0a9394f89a1bcfada. The fix is based on a patch from Kevin Wolf. Here his comment: "The number of blocks needs to be rounded up to cover all of the virtual hard disk. Without this fix, we can't even open our own images if th