Write Hello, world! to a file and read it!

This commit is contained in:
Yifan Wu 2020-12-19 18:32:01 +08:00
parent 015a8b6407
commit 8713046a4a
3 changed files with 21 additions and 3 deletions

View file

@ -276,4 +276,7 @@ impl DirEntry {
let len = (0usize..).find(|i| self.name[*i] == 0).unwrap();
core::str::from_utf8(&self.name[..len]).unwrap()
}
pub fn inode_number(&self) -> u32 {
self.inode_number
}
}