Filesystem code implemented in C