Home
last modified time | relevance | path

Searched hist:"7 e382003f1bd9d8a441ecc5ac8a74bad3564d943" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/
H A Dblock.cdiff 7e382003f1bd9d8a441ecc5ac8a74bad3564d943 Wed Nov 06 05:48:06 CST 2013 Fam Zheng <famz@redhat.com> block: Round up total_sectors

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 <famz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>