handle result returned by create

master
gaotianyu1350 6 years ago
parent d9fa1417fe
commit 56b9db6c8f

@ -870,7 +870,7 @@ 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); // what's mode?
root.create("dev", vfs::FileType::Dir, 0).expect("fail to create dev"); // what's mode?
return root;
}

Loading…
Cancel
Save