Add inode number to redoxfs

This commit is contained in:
Jeremy Soller
2017-01-30 20:44:09 -07:00
parent 665120f063
commit fa6c19f79b
+4
View File
@@ -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;