From 56b9db6c8f8a3ffcd193ca9794e4636d65924cd3 Mon Sep 17 00:00:00 2001 From: gaotianyu1350 Date: Tue, 9 Apr 2019 15:41:32 +0800 Subject: [PATCH] handle result returned by create --- rcore-fs-sfs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcore-fs-sfs/src/lib.rs b/rcore-fs-sfs/src/lib.rs index be79aac..b9fc438 100644 --- a/rcore-fs-sfs/src/lib.rs +++ b/rcore-fs-sfs/src/lib.rs @@ -870,7 +870,7 @@ 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); // what's mode? + root.create("dev", vfs::FileType::Dir, 0).expect("fail to create dev"); // what's mode? return root; }