From fa6c19f79bf685db9022e2c4758fb3adb5c450dd Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Mon, 30 Jan 2017 20:44:09 -0700 Subject: [PATCH] Add inode number to redoxfs --- mount/redox/resource.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mount/redox/resource.rs b/mount/redox/resource.rs index f985092968..e26b9d3177 100644 --- a/mount/redox/resource.rs +++ b/mount/redox/resource.rs @@ -90,6 +90,8 @@ impl Resource for DirResource { fn stat(&self, stat: &mut Stat, fs: &mut FileSystem) -> Result { let node = try!(fs.node(self.block)); + stat.st_dev = 0; //TODO + stat.st_ino = node.0; stat.st_mode = node.1.mode; stat.st_uid = node.1.uid; stat.st_gid = node.1.gid; @@ -198,6 +200,8 @@ impl Resource for FileResource { fn stat(&self, stat: &mut Stat, fs: &mut FileSystem) -> Result { let node = try!(fs.node(self.block)); + stat.st_dev = 0; //TODO + stat.st_ino = node.0; stat.st_mode = node.1.mode; stat.st_uid = node.1.uid; stat.st_gid = node.1.gid;