diff options
author | Stefan Weil <weil@mail.berlios.de> | 2010-05-12 20:25:45 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2010-05-17 10:20:05 +0200 |
commit | f21dc3a4652eeb82117d7d55d975278fe1444b26 (patch) | |
tree | 6c679bf2481ec5185ab3ac8528b2715e51fe83c4 /Makefile.user | |
parent | 64a31d5c3d73396a88563d7a504654edc85aa854 (diff) |
block/vdi: Fix image opening and creation for odd disk sizes
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 modification also fixes
vdi_open which now accepts images with odd disk sizes.
v3:
Don't allow reading of disk images with too large disk sizes.
Neither VBoxManage nor old versions of qemu-img read such images.
This change requires rounding of odd disk sizes before we do the checks.
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: François Revol <revol@free.fr>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'Makefile.user')
0 files changed, 0 insertions, 0 deletions