Re: ext4 features

Trond Myklebust
2006-07-21T12:06:33Z

On Thu, 2006-07-20 at 23:10 -0400, Bill Davidsen wrote:
> Trond Myklebust wrote:
>
> >On Mon, 2006-07-10 at 18:37 -0400, Bill Davidsen wrote:
> >
> >
> >Linus might accept it, but I won't. It is totally unnecessary.
> >
> >
>
> By "totally unnecessary" you mean "I don't see why it's useful."
>
> The reason for using noatime is to avoid generating disk activity while
> the data is being accessed. It's not usually used to hide the fact that
> the data has been used and is therefore useful to someone. In a perfect
> world, where money is no object, all data is on very fast storage which
> never fails. In my world I would like to identify which data, source or
> documentation, has been referenced over some period of time. This is
> useful for moving some data to slower (yes I mean less expensive) storage.
>
> It's also useful to identify stuff which no one has used in a very long
> time and which is a candidate for not being on line at all.
>
> By keeping lazy track of access time it's possible to still have that
> data, with minimal disk access cost. And to some people that can be
> really useful, such as those of us who have to justify expenditures.

What you propose violates both POSIX and SuSv3. close() does not update
the atime on a file. I can't see anyone accepting that there is a need
for this.
If you want to force close to update atime automatically on your system,
then you should already be able to hack up libc to do it. There are no
discernable advantages to doing it in the kernel.