remove creating dev in root_inode

master
Tianyu Gao 6 years ago
parent 56b9db6c8f
commit 1cc5fd90bb

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

Loading…
Cancel
Save