master
gaotianyu1350 6 years ago
parent 55a8d35054
commit d9fa1417fe

@ -868,9 +868,10 @@ impl vfs::FileSystem for SimpleFileSystem {
}
fn root_inode(&self) -> Arc<vfs::INode> {
self.get_inode(BLKN_ROOT)
// let root = self.get_inode(BLKN_ROOT);
// root.create("dev", vfs::FileType::Dir, 0);
// self.get_inode(BLKN_ROOT)
let root = self.get_inode(BLKN_ROOT);
root.create("dev", vfs::FileType::Dir, 0); // what's mode?
return root;
}
fn info(&self) -> vfs::FsInfo {

Loading…
Cancel
Save