From 1f97d8220cd48cd3ddcb917d23337f15104234cf Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Sun, 9 Jul 2017 10:25:26 -0600 Subject: [PATCH] Add times to stat --- mount/redox/resource.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mount/redox/resource.rs b/mount/redox/resource.rs index c7f0a29..35ce4d7 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() }; -- GitLab