adding getters in filesys.rs

This commit is contained in:
Baptiste 2023-03-29 18:25:30 +02:00
parent 391359a54e
commit 856cbdfe01

View File

@ -335,6 +335,16 @@ impl Filesys {
//TODO //TODO
} }
/// return the free map file (used by the open file table).
pub fn get_free_map_file(self) -> OpenFile {
self.free_map_file
}
/// return the base directory file (used by the open file table).
pub fn get_dir_file(self) -> OpenFile {
self.directory_file
}
/// Create a directory in the Nachos file system (similar to UNIX create). /// Create a directory in the Nachos file system (similar to UNIX create).
/// A directory is a file containing a table of directory entries. /// A directory is a file containing a table of directory entries.
/// ///