block-vpc: Don't silently create smaller image than requested
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 15 Apr 2009 14:42:46 +0000 (14:42 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Wed, 15 Apr 2009 14:42:46 +0000 (14:42 +0000)
commit6e9ea0c0629fe25723494a19498bedf4b781cbfa
treec0427853275f28ccbe5d1dd6fc4d8fee6c360675
parent29463b24a8f427b7ff779b30fe52f1f00ad9b98c
block-vpc: Don't silently create smaller image than requested

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: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7109 c046a42c-6fe2-441c-8c8c-71466251a162
block-vpc.c
qemu-img.c