Directory Module
Role in the System
This module encapsulates the directory data structure used by the file system. The relevant files are directory.h and directory.cc. The directory in NACHOS consists of a table with:
- file name
- location of the file header on the disk
The routines ReadFrom() and WriteBack() are used to read from the directory and to write back any modifications, respectively. In the baseline NACHOS, the directory size is fixed. One of the assignments requires the students to implement a variable-size directory.
Uses Relation