mtime and directories...

lists at battleface.com lists at battleface.com
Wed Nov 19 07:33:03 PST 2003


Thanks, Ari. This helps. I forgot to ask if this is documented 
anywhere. Kernel code is fine as long as I know where to look.

Thanks, again.

Alex


On Tuesday, November 18, 2003, at 09:28  PM, ari wrote:

> lists at battleface.com said this stuff:
>
>> Changing a file, of course, results in a change to its modification
>> time. Am I correct in determining that the mtime of the enclosing
>> directory is also updated?
>
> The mtime of a directory is updated when the directory "file" changes.
> Directory "file"s contain filenames and their associated inode numbers.
> Modify any of that information (e.g., create a new file, remove or
> rename an existing file), and the mtime will be changed.  Changing the
> ctime or mtime of a file within a directory does not modify that of the
> directory itself.
>
<snip>

-------------------------------------------------------------
ALEXANDER SENDZIMIR                    Battleface Consulting
290 Marble Island Road                 802 863 5502
Colchester, Vermont                    info at battleface.com



More information about the freebsd-hackers mailing list