Add inode number to redoxfs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user