Currently trying to turn an oversized directory into a VVFAT image will
commit8ce0f8699347bb4beab1cbdb4245907d21cc26ea
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 10 Nov 2008 01:34:27 +0000 (10 01:34 +0000)
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 10 Nov 2008 01:34:27 +0000 (10 01:34 +0000)
tree5fb7b39e2e98095445efe65d6c72693799abedcc
parent59795a1f92ed81b63612edd41323792e81d2af7a
Currently trying to turn an oversized directory into a VVFAT image will
result in a cryptic error (and an abort):
  qemu: block-vvfat.c:97: array_get: Assertion `index < array->next' failed.
  Aborted

Turn this into an actually useful error message:
  Directory does not fit in FAT16 (capacity 504MB)
  qemu: could not open disk image fat:$DIR/

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