[Qemu-devel] [PATCH] block: Round up total_sectors

2013-11-06 Thread Fam Zheng
Since b94a2610, bdrv_getlength() is omitted when probing image. VMDK monolithicFlat is broken by that because a file 512 bytes can't be read with its total_sectors truncated to 0. This patch round up the size to BDRV_SECTOR_SIZE, when a image size is not sector aligned. Signed-off-by: Fam Zheng

Re: [Qemu-devel] [PATCH] block: Round up total_sectors

2013-11-06 Thread Benoît Canet
Le Wednesday 06 Nov 2013 à 19:48:06 (+0800), Fam Zheng a écrit : Since b94a2610, bdrv_getlength() is omitted when probing image. VMDK monolithicFlat is broken by that because a file 512 bytes can't be read with its total_sectors truncated to 0. This patch round up the size to