Re: New feature

Ricky Beam (root@defiant.interpath.net)
Wed, 24 Sep 1997 05:08:43 -0400 (EDT)


Letting the chips fall where they may, I quote David S. Miller:
> Date: Tue, 23 Sep 1997 21:49:12 -0400 (EDT)
> From: "Richard B. Johnson" <root@chaos.analogic.com>
>
> Correct! Now, is a directory access a file access? I don't think it
> should be.
>
>Why not? It has been forever at least for ext2. Have a look at the
>end of fs/ext2/dir.c:ext2_readdir().
>
>I think POSIX even states that this is how things should work.

This is UNIX, the filesystem consists of FILES - period. What you do with
magic bits in the filesystem is your business.

There used to be all manner of neat things one could do with setting/clearing
the directory bit in the inode... turn a regular file into a directory and
vice-versa. The kernel now blocks such idiot things as accessing directories
without specifying that you accessing them as a directory: 'cat .' no longer
works.

>ATIME is the access time for an inode, when you read an inode which
>happens to be a directory you are accessing it.

A clarification... if you access an inode (any inode,) the access time is
updated. stat()ing the inode accesses the inode, hence the atime is updated
for every file on the drive following 'ls -laR /'

--Ricky