Implementing a filesystem