diff --git a/mount/redox/resource.rs b/mount/redox/resource.rs index f985092968cf1d7a8c7878c8456d65c4489dec43..e26b9d317725aa9bfce0d01d523683e670c46dfb 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<usize> { 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<usize> { 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;