Re: barbut anyone?

Martin D Kealey <[email protected]> Thu, 17 Nov 2011 11:45:51 +1300 (NZDT)
Newsgroups gmane.org.user-groups.linux.new-zealand.general
Message-ID <alpine.DEB.2.00.1111171137180.24608@feathers>
I said:
> > If the "mtime" is older than the "ctime" on a file, my "lsx" puts a "*" next

On Wed, 16 Nov 2011, Steve Holdoway wrote:
> To the best of my knowledge linux doesn't save the file creation time.
> There's the last mod time of the inode, but that's not the same thing...

I didn't say creation time, I said ctime; in the manual that is described as
the inode CHANGE time. It records the last time a change is made to the
inode metadata, rather than to the content (which is recorded by the mtime).

In particular, the ctime is set to the current time when the "utime" system
call is used to change the atime and/or mtime values.

(It's also set-to-current if links are added or removed or renamed, or if
ownership or permissions change, or on the root directory of a filesystem
when it's mounted or unmounted (although that's version-dependent).)

-Martin

_______________________________________________
NZLUG mailing list [email protected]
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug