From d9fa1417fed5c9a28c4a9025d597960075117456 Mon Sep 17 00:00:00 2001 From: gaotianyu1350 Date: Tue, 9 Apr 2019 15:40:13 +0800 Subject: [PATCH] create dev --- rcore-fs-sfs/src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rcore-fs-sfs/src/lib.rs b/rcore-fs-sfs/src/lib.rs index 871c611..be79aac 100644 --- a/rcore-fs-sfs/src/lib.rs +++ b/rcore-fs-sfs/src/lib.rs @@ -868,9 +868,10 @@ impl vfs::FileSystem for SimpleFileSystem { } fn root_inode(&self) -> Arc { - 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 {