A tiny FAT file system

The problem

Build a small in-memory file system on a block table: create, show and delete files with a FAT, and resolve paths in a directory tree.

Requirements

Technologies

Step by step

  1. Design the FAT array and the file table with a name, a start block and a size.
  2. Write create, show and delete, and test them with a script of commands.
  3. Add directories as entries of name and inode number and write the path lookup.
  4. Add link counts and make the program print them.
  5. Test the error cases: a full disk, a missing name and a path through a file.

Expected result

A program that runs a script of file commands and prints the result of each, the block chains and the final free space.

How it is evaluated

Ways to improve it