Posted Jul 29, 2010 9:18 UTC (Thu) by saffroy (subscriber, #43999)
[Link]
Any change to file data will require updating mtime, which is metadata, hence ctime will be updated too. If you enlarge the file with truncate() without touching its content, you still change the file length, again a metadata.
File creation times
Posted Jul 29, 2010 9:48 UTC (Thu) by fperrin (guest, #61941)
[Link]
> Any change to file data will require updating mtime, which is metadata, hence ctime will be updated too.
Does this mean that ctime is always more recent than mtime ?
File creation times
Posted Jul 29, 2010 10:01 UTC (Thu) by Mog (subscriber, #29529)
[Link]
> Does this mean that ctime is always more recent than mtime ?
Since mtime can be set to any value (using touch for example), not always.
File creation times
Posted Jul 29, 2010 17:10 UTC (Thu) by docwhat (subscriber, #40373)
[Link]
Posted Jul 29, 2010 23:45 UTC (Thu) by jzbiciak (✭ supporter ✭, #5246)
[Link]
So how come ctime did *not* change? The metadata (ie. mtime) changed. I'm willing to believe that mtime is *not* in the set of metadata that ctime represents.
File creation times
Posted Jul 30, 2010 0:13 UTC (Fri) by docwhat (subscriber, #40373)
[Link]
It happened too fast. I'm using a script. Here it is with a sleep.