]> git.proxmox.com Git - qemu.git/commit
block-vpc: Don't silently create smaller image than requested (Kevin Wolf)
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 18 Apr 2009 15:39:10 +0000 (15:39 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 18 Apr 2009 15:39:10 +0000 (15:39 +0000)
commit530a491fc3a7469497d55b95259d97f8299b4dfa
treef14f3dc2109e5b4e63f41b274b2da2d3833cc527
parent2fcc1d5b6972cec2a313ec0ea7e9acc4a17e2f2a
block-vpc: Don't silently create smaller image than requested (Kevin Wolf)

The algorithm from the VHD specification for CHS calculation silently limits
images to 127 GB which may confuse a user who requested a larger image. Better
output an error message and abort.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/branches/stable_0_10@7183 c046a42c-6fe2-441c-8c8c-71466251a162
block-vpc.c
qemu-img.c