Re: [PATCH 00/23] per device dirty throttling -v8

Dave Jones
2007-08-17T00:45:56Z

On Sun, Aug 05, 2007 at 11:00:29AM -0400, Theodore Tso wrote:

> P.S. Yet alternative is to specify noatime on an individual
> file/directory basis. We've had this capability for a *long* time,
> and if a distro were to set noatime for all files in certain
> hierarchies (i.e., /usr/include) and certain top-level directories
> (since the chattr +A flag is inherited)

This came across my mind again earlier, and I went digging.
Can you explain how this works?

I've eyeballed the ext2/ext3 code, and feel like I'm missing something obvious.
I'm guessing that for eg, with /usr/include/stdio.h, we check the inodes
for all four parts of path, and if any of them are +A we avoid the
atime update ? If so, where does that inheritance happen in the code?

Dave

--