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)
commit54599314c0326985e146e4aa593982ecbad71e3c
treec0427853275f28ccbe5d1dd6fc4d8fee6c360675
parent4c3c6bf4f13a081f4e582f21f05184dab6cb67fe
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