Subject: Re: ufs-ism in lookup(9)
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 03/25/2004 10:41:07
--fUYQa+Pmc3FrFX/N
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 25, 2004 at 11:01:25AM +0900, YAMAMOTO Takashi wrote:
> hi,
>=20
> > > i think (dvp, name) pair is enough to check if it's a mount point or =
not
> > > in that case.  it isn't very pretty, though.
> >=20
> > That is all that needs to be passed in, true. To me the question is how=
=20
> > much work are we trading? We'd save the VOP_LOOKUP() (which could be a =
big=20
> > deal), but we then have more complexity in each file system so they can=
 do=20
> > the mount-point test themselves.
>=20
> what i meant is, filesystem independent code can do the test
> before calling VOP_REMOVE.

How? We need the vnode itself (if there is one) to see if it's mounted on.

Note I'm assuming that we also did the NOLEAF or whatever change, so that=
=20
we don't actually VOP_LOOKUP() the node.

Take care,

Bill

--fUYQa+Pmc3FrFX/N
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)

iD8DBQFAYyfCWz+3JHUci9cRAp0AAJ4isDPfI3t8jzYJHmMXTtXf+Xu+kQCbBXqy
ew3lMbLwsuqEx0hSUzhWGfQ=
=xuw+
-----END PGP SIGNATURE-----

--fUYQa+Pmc3FrFX/N--