[Aide] I (ignore changed filename) woes

Richard van den Berg richard at vdberg.org
Mon Oct 31 11:12:12 EET 2005


Thanks Bob for the detailed description of your concerns.

Bob Proulx wrote:
> So knowing that names of files are not stored in the inode but are
> stored in the directory then we can see that renaming files in a
> directory will not update the ctime of the file but it will update the
> mtime of the directory.

I just did a test (using GNU ls) on Linux on tmpfs:

$ touch foo
$ ls -lac --full-time foo
-rw-r--r--  1 richard root 0 2005-10-31 10:04:31.000000000 +0100 foo
$ mv foo bar
$ ls -lac --full-time bar
-rw-r--r--  1 richard root 0 2005-10-31 10:05:17.510281465 +0100 bar
$

and on Solaris using GNU ls on tmpfs:

$ touch foo
$ /usr/local/bin/ls -lac --full-time foo
-rw-r--r--    1 richard  staff           0 Mon Oct 31 10:08:20 2005 foo
$ mv foo bar
$ /usr/local/bin/ls -lac --full-time bar
-rw-r--r--    1 richard  staff           0 Mon Oct 31 10:09:34 2005 bar
$

As you can see, the ctime is updated when the name of a file is changed.

Sincerely,

Richard van den Berg


More information about the Aide mailing list