adding getters in filesys.rs
This commit is contained in:
parent
391359a54e
commit
856cbdfe01
@ -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.
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user