A file system simulator implemented in c