From 3edc14e317191f06b946c58e522ff3c5c22eb998 Mon Sep 17 00:00:00 2001 From: gaotianyu1350 Date: Sun, 7 Apr 2019 23:51:59 +0800 Subject: [PATCH] add dev dir --- rcore-fs-sfs/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rcore-fs-sfs/src/lib.rs b/rcore-fs-sfs/src/lib.rs index 791eef5..24febdf 100644 --- a/rcore-fs-sfs/src/lib.rs +++ b/rcore-fs-sfs/src/lib.rs @@ -868,7 +868,8 @@ 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); } fn info(&self) -> vfs::FsInfo {