Simplest Filesystem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Anon

Simplest Filesystem

Post by Anon »

I really need an image or spec for the SIMPLEST filesystem. It doesn't have to support media > 1.44 Mb, but it can.
jamethiel

RE:Simplest Filesystem

Post by jamethiel »

Well, for a read-only filesystem, you just lay out an index at the start of the disk with the filename, the filesize, and the starting position on the disk, followed by the file data in sequential blocks. Dead simple. Only thing that could be simpler is to not have filenames at all and just refer to data by block number.

Alternatively, steal any disk format for any 8-bit computer (hint: FAT12 was used on the MSX, so it counts). It shouldn't be too hard to find specs with google or by poking around the links from this site or any of the major indices.
Chase

RE:Simplest Filesystem

Post by Chase »

>> Alternatively, steal any disk format for any 8-bit computer
>> (hint: FAT12 was used on the MSX, so it counts).

Fat12 doesn't count as simple in my book...all that annoying bit shifting to sort through that file allocation tables...shudder..

-Chase
Adek336

RE:Simplest Filesystem

Post by Adek336 »

Hello,

bit shifting is in fact the only problematic point of FAT12. It is worth of considering.

If you want to see some fs specs, go to http://www.nondot.org/sabre/os/articles/FileSystems/.

Do you want to it in pmode or in rmode?

My rmode implementation is somekind simplified by having hardcoded the sector numbers of the FAT, root dir, etc.

Regards and good luck,
Adrian.
root_demon

RE:Simplest Filesystem

Post by root_demon »

Post Reply