Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2007 23:37:22 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        deeptech71@gmail.com
Cc:        freebsd-chat@freebsd.org
Subject:   Re: filesystem timestamps and their usage
Message-ID:  <20070819203721.GA10057@kobe.laptop>
In-Reply-To: <46C863A6.5010404@gmail.com>
References:  <46C863A6.5010404@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2007-08-19 17:37, deeptech71@gmail.com wrote:
> Let's talk about file system timestamps. What kind of timestamps are
> there currently, and what are they used for? (or what new timestamps
> would be needed/beneficial, or whatever.)
>
> Currently I can think of only two:
> 1. data_time: The last time the file was written to.
> 2. file_time: The last time the file was moved or written to.
>
> [snip discussion about fictitious timestamp values]

It would be more interesting, educating and useful to discuss the
usefulness of the current 'ctime', 'mtime' and 'atime' attributes
implemented by most UNIX file systems (as opposed to, say, a
discussion of the usefulness and merits of a pair of imaginary
timestamp attributes).

Try searching for 'ctime', 'mtime' and 'atime' in the source tree of
FreeBSD.

The most interesting place (but the most 'technical' too) is, naturally,
the implementation of the UFS file system itself:

        /usr/src/sys/ufs/ufs/dinode.h

If you go through this header file, looking for 'time', you will see
many useful bits and pieces of information.

- Giorgos




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070819203721.GA10057>