-
Fam Zheng authored
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>Fam Zheng authoredSince 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>
Loading