From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 19 07:33:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30C4316A4CE for ; Wed, 19 Nov 2003 07:33:03 -0800 (PST) Received: from cyclone.he.net (cyclone.he.net [64.62.230.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 9A98143FD7 for ; Wed, 19 Nov 2003 07:33:02 -0800 (PST) (envelope-from lists@battleface.com) Received: from battleface.com ([24.52.31.3]) by cyclone.he.net for ; Wed, 19 Nov 2003 07:33:01 -0800 Date: Wed, 19 Nov 2003 10:32:59 -0500 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: ari From: lists@battleface.com In-Reply-To: <20031119022809.GF58437@episec.com> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) cc: freebsd-hackers@freebsd.org Subject: Re: mtime and directories... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Nov 2003 15:33:03 -0000 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. > ------------------------------------------------------------- ALEXANDER SENDZIMIR Battleface Consulting 290 Marble Island Road 802 863 5502 Colchester, Vermont info@battleface.com