diff --git a/mount/redox/resource.rs b/mount/redox/resource.rs index c7f0a29701bd8b115e016a113b088abb08c639f3..35ce4d71da5dcf70dc7f797852785b2e7e1b1316 100644 --- a/mount/redox/resource.rs +++ b/mount/redox/resource.rs @@ -95,9 +95,14 @@ impl Resource for DirResource { st_dev: 0, // TODO st_ino: node.0, st_mode: node.1.mode, + st_nlink: 1, st_uid: node.1.uid, st_gid: node.1.gid, st_size: fs.node_len(self.block)?, + st_mtime: node.1.mtime, + st_mtime_nsec: node.1.mtime_nsec, + st_ctime: node.1.ctime, + st_ctime_nsec: node.1.ctime_nsec, ..Default::default() }; @@ -205,9 +210,14 @@ impl Resource for FileResource { st_dev: 0, // TODO st_ino: node.0, st_mode: node.1.mode, + st_nlink: 1, st_uid: node.1.uid, st_gid: node.1.gid, st_size: fs.node_len(self.block)?, + st_mtime: node.1.mtime, + st_mtime_nsec: node.1.mtime_nsec, + st_ctime: node.1.ctime, + st_ctime_nsec: node.1.ctime_nsec, ..Default::default() };