Date: Wed, 19 Nov 2003 10:32:59 -0500 From: lists@battleface.com To: ari <edelkind-freebsd-hackers@episec.com> Cc: freebsd-hackers@freebsd.org Subject: Re: mtime and directories... Message-ID: <A7E1CE0A-1AA5-11D8-B220-000A95775140@battleface.com> In-Reply-To: <20031119022809.GF58437@episec.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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@battleface.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7E1CE0A-1AA5-11D8-B220-000A95775140>