Subject: Re: fileassoc (Re: CVS commit: src)
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Elad Efrat <elad@NetBSD.org>
List: tech-kern
Date: 07/16/2006 11:39:09
YAMAMOTO Takashi wrote:

> then "you can call this function only when it's safe to call VOP_GETATTR."

#% getattr    vp      = = =

i assume you mean not just locking, though, so i'll add a comment.

> let's define "file was removed" first.
> 
> 	1. whenever link count is decremented.
> 	2. when link count reaches 0.  ie. disappeared from namespace.
> 	3. when the last reference is closed after #2.
> 	4. other?
> 
> i think #3 is reasonable, and if so, sys_unlink is not a right place.

i'll ask it another way: where do you suggest placing the hook that is
not fs-specific?

> where?  isn't it fileassoc_lookup?

oh yah, you're right, i didn't think i managed to clean it up that much.
i'll unexport it.

-e.

-- 
Elad Efrat