Build a simple FAT16 filesystem image
The approach I'm taking makes several assumptions to keep it simple:
- filesystem size will not exceed 512 * 64 * 65525 [sic] bytes + fs data.
- no long filenames
- all files to be added will come from existing file descriptors
- the files to be added are all declared before the filesystem is generated
- the files sizes can be looked up before copying them to the filesystem
- ... more?
Some of these aren't hard to fix, but I'm not planning on working on them unless I find a need.
My main references have been: