File System Module
Role in the System
The purpose of this module is to define the set of file operations in the file system. The relevant files are filesys.h and filesys.cc. The following routines are core to any proper file system:
- create - create a new file
- open - open a file
- remove - delete a file
- list - list the names of the files in the file system
- print - display the file names and their respective contents
Note that if the above operations complete successfully, the changes are written to disk immediately. However, in the event of failure, the modified directory in the buffer in simply discarded, leaving the original version on the disk. It is possible that if the computer system should fail in the midsts of the operations, the file system could potentially become corrupted. These operations above differ from the Open File Module in that the list pertains to files in general as opposed to individual files.
Uses Relation