The filenames are currently inside the FAT structure, so it don't scale well when we increase the number of files (1024 and beyond).
We would like the following structure instead:
Fat:
- File infos
- Blocks
File info:
- First block table index (0xFFFF if entry not used)
- Size (in bytes)
The on-disk structure is the following:
- Magic identifier
- Fat structure
- Data
The first file info entry is reserved for the filenames. The index of the file info entry is the same as the index in the list of filenames.