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 21:52:33
YAMAMOTO Takashi wrote:

> (assuming #3 is reasonable for your purpose)

the idea, as even you noted before i added this code, is that fileassoc
(arguably) needs to know when a file is removed or a fs is unmounted.

> i don't think we have a good place in filesystem independent code.

then we should. if our vfs layer can't tell when a file is being
removed, that's a problem, and defective design imho.

how to resolve this problem is up to you: if you want me to remove
the sys_unlink() hooks i will, if you have a different solution in
mind (either adding code to indicate file removal in vfs, whatever)
it all goes afaic.

one thing i won't do is add fs-specific hooks for this purpose. :)

-e.

-- 
Elad Efrat