Skip to contentSkip to conversation

Size of virtual FAT disk limit?

Qemu-devel consul 1 participant 2 messages Jul 5, 2007 – Jul 10, 2007

lore
Share & tools
lore

consul

author
#0 lore raw

Hi,

I'm running into a problem with virtual FAT disks. If the source directory contents size
significantly exceeds 494673920 (0x1D7C2000) bytes, I get an error:
Assertion failed: index < array->next, file c:/qemu/block-vvfat.c, line 97

If the sise only slightly exceeds (even by one byte) this limit, I get the different error:
Directory does not fit in FAT16

This seems strange, as this limit is not even close to 2GB limit imposed by FAT16.

I tried quite recent qemu CVS version from 6/28/07 on Windows XP host. qemu -L . -hda c:\qemu-img\test.q2 -hdb fat:\test2 -fda c:\qemu-img\boot.ima -boot a
Will try it on Linux later.

Any comments on the error?

Alex.

author
#1 lore raw

I just ran the same test on the linux box with the similar result. How to reproduce the problem:

mkdir xxx
dd if=/dev/zero of=xxx/dummy count=966160 qemu -hda fat:xxx -cdrom cd.iso -boot d (boots ok)

dd if=/dev/zero of=xxx/dummy count=966161 qemu -hda fat:xxx -cdrom cd.iso -boot d (qemu could not open hard disk image 'fat:xxx')

Any clues how to fix the problem?

"consul" <[email protected]> wrote in message news:[email protected]...

Quoted 27 lines

Hi,

I'm running into a problem with virtual FAT disks. If the source directory contents size
significantly exceeds 494673920 (0x1D7C2000) bytes, I get an error:
Assertion failed: index < array->next, file c:/qemu/block-vvfat.c, line 97

If the sise only slightly exceeds (even by one byte) this limit, I get the different error:
Directory does not fit in FAT16

This seems strange, as this limit is not even close to 2GB limit imposed by FAT16.

I tried quite recent qemu CVS version from 6/28/07 on Windows XP host. qemu -L . -hda c:\qemu-img\test.q2 -hdb fat:\test2 -fda c:\qemu-img\boot.ima -boot a
Will try it on Linux later.

Any comments on the error?

Alex.