Subject: Re: CVS commit: src/sys
To: Jason R Thorpe <email@example.com>
From: Jaromir Dolecek <firstname.lastname@example.org>
Date: 03/17/2003 19:59:55
Jason R Thorpe wrote:
> On Mon, Mar 17, 2003 at 11:11:31AM +0200, Jaromir Dolecek wrote:
> > Log Message:
> > make it possible for UNION fs to be loaded via LKM - instead of
> > having some #ifdef UNION code in vfs_vnops.c, introduce variable
> > 'vn_union_readdir_hook' which is set to address of appropriate
> > vn_readdir() hook by union filesystem when it's loaded & mounted
> So, what happens if you load 2 LKMs that want to set this hook?
Two different UNION LKMs?
This hook is purely and only for UNION filesystem. The former code
checked (vp->v_op == union_vnodeop_p) for example. That check was
now moved to union_readdirhook(). The former code was purely UNION
filesystem specific, and so is this vn_union_readdir_hook.
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-