Subject: Re: kern/25279: NFS read doesn't update atime
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 06/27/2005 00:52:33
On Mon, Jun 27, 2005 at 12:39:30AM +0200, Manuel Bouyer wrote:
> For mmap'ed accesses, probably. But I don't think this is a problem,
> because if we're faulting in a page via mmap(), we're reading the file,
> isn't it ?
> For write, yes, it can be a problem if a write can cause a page to be
> read via VOP_GETPAGES() (this I don't know). But maybe we can avoid it,
> by checking PGO_OVERWRITE in ap->a_flags ? This is already done in
> ffs_getpages() for something else.
Hum, I just tested. Yes the atime is updated on a write, and testing
PGO_OVERWRITE doesn't fix the problem :(
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--