Subject: Re: CVS commit: syssrc/sys/miscfs/nullfs
To: enami tsugutomo <enami@but-b.or.jp>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 03/22/2002 17:41:29
On Sat, 23 Mar 2002, enami tsugutomo wrote:

> > > For example, ufs_inactive does VOP_UPDATE().  This means the time
> > > recorded on disk becomes the time when upper vnode is reclaimed.  How
> > > do you fix this?
> >
> > We don't. It's not a problem. :-) The time that gets stored is in the
> > ctime field. The atime and mtime were set to when the last read & write
> > happened, when the last read & write happened.
>
> I just did quick test and ufs_inactive is really called with IN_ACCESS
> or IN_UPDATE set, even for regular files.  I don't check stack trace
> yet though.

Hmmm... I'll have to think about how to handle this. Probably the best way
to do it is have the layer inactivates look to see what the count on the
overall node is. If it's zero, fire off an update to flush that out.

Take care,

Bill