diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-01-03 06:36:33 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-01-03 06:36:33 -0600 |
| commit | 7a72e3f54d48f29517d7961590d418b1c60dfeaa (patch) | |
| tree | 7bc501f900826bfae9bbbcb1a8c67efee3c32929 /examples/ext2.rs | |
| parent | bf07291c069028d84b242222d1f89de5e673e636 (diff) | |
Fix ctime which is change (not creation) time
Diffstat (limited to '')
| -rw-r--r-- | examples/ext2.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ext2.rs b/examples/ext2.rs index b51c9e5..025802f 100644 --- a/examples/ext2.rs +++ b/examples/ext2.rs @@ -458,7 +458,7 @@ impl Known for Resolved { fn attrs(&self) -> (Attrs, Ttl) { let inode = self.inode; - let (access, modify, create) = { + let (access, modify, change) = { let time = |seconds: u32| (UNIX_EPOCH + Duration::from_secs(seconds.into())).into(); let (atime, mtime, ctime) = (inode.i_atime, inode.i_mtime, inode.i_ctime); @@ -474,7 +474,7 @@ impl Known for Resolved { .mode(Mode::from_bits_truncate(inode.i_mode.into())) .blocks(inode.i_blocks.into()) .block_size(512) - .times(access, modify, create) + .times(access, modify, change) .links(inode.i_links_count.into()); (attrs, Ttl::MAX) |
