diff options
| author | Fam Zheng | 2013-11-06 12:48:06 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2013-11-08 10:44:24 +0100 |
| commit | 7e382003f1bd9d8a441ecc5ac8a74bad3564d943 (patch) | |
| tree | a2f2a09ee32f8e9be3073c6d3d17ba4932d5d63a /block | |
| parent | block: vhdx qemu-iotest - log replay of data sector (diff) | |
| download | qemu-7e382003f1bd9d8a441ecc5ac8a74bad3564d943.tar.gz qemu-7e382003f1bd9d8a441ecc5ac8a74bad3564d943.tar.xz qemu-7e382003f1bd9d8a441ecc5ac8a74bad3564d943.zip | |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
