lkml.org 
[lkml]   [1997]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: New feature
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.102 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site