Re: File.ctime for detecting directory modifications?



Rick DeNatale wrote:

/ ...

Actually, won't this behavior depend on the file system rather than the
kernel?

I don't know about ctime, but some filesystems allow control over
whether other attributed like atime are maintained or updated.

Good question, to which I don't have a general answer. I assumed that the
handling of file times were rather central to the identity of an operating
system (rather than a filesystem). It's just an assumption.

--
Paul Lutus
http://www.arachnoid.com
.



Relevant Pages

  • Re: Change file creation date/time
    ... atime is updated when the file is read, ... it to other than the current time generally will also cause the ctime ... at least for ordinary UNIX filesystems. ... changes to the inode data for a file other than merely reading the ...
    (comp.unix.shell)
  • [Fwd: [NFS PATCH] 2.6.0-test10 Invalidate cached inode attributes after rename]
    ... relevant code there indicates this is true with other Unix filesystems ... Tar prints lots of "file changed after we read it" messages. ... Tar obtains ctime via statbefore reading the file and compares it to ... invalidation during rename() eliminates this particular scenario. ...
    (Linux-Kernel)
  • Re: ReiserFS patch for updating ctimes of renamed files
    ... > fooled by a missing ctime update. ... go changing how working filesystems function. ... which i found did not update mtime when directories change ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Listing All Files In A Filesystem
    ... meaningful results from filesystems which *control* drives. ... ShareFS or SparkFS etc. whatever you do because they don't control ... it's more than possible that a FileCore file ...
    (comp.sys.acorn.programmer)
  • Re: Modifying file access time upon exec...
    ... > Hi Marc, Ken, ... I'm saying that there are filesystems you wouldn't want to mount ... Other than changing it so that the atime on executable ...
    (freebsd-arch)