Subject: Re: NAMECACHE_ENTER_REVERSE (Re: CVS commit: src/sys/kern)
To: Rhialto <rhialto@falu.nl>
From: Bill Studenmund <wrstuden@netbsd.org>
List: tech-kern
Date: 11/30/2006 13:22:53
--St7VIuEGZ6dlpu13
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 30, 2006 at 06:32:49PM +0100, Rhialto wrote:
> On Tue 28 Nov 2006 at 14:11:01 -0800, Bill Studenmund wrote:
> > For instance, for procfs's "exe" symlink, rather than depend on reverse=
=20
> > name cache entries, save the path you originally used to exec the progr=
am=20
> > in the first place. :-)
>=20
> The path given to exec(2) might be relative, and the process looking at
> it may (now) be in another directory. So it needs some extra work with
> getcwd().

We just have to handle that at exec time. The advantage is that=20
directories (and thus cwd) will always have a single backpath to root (you=
=20
can't hardlink directories).

Take care,

Bill

--St7VIuEGZ6dlpu13
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFFb0utWz+3JHUci9cRAu92AKCTA32rIK1+bnpq8ZwwAGuC+Q3DMgCdHhsB
cZP8hxn6ySKCgGtJk6+vSzU=
=+9E7
-----END PGP SIGNATURE-----

--St7VIuEGZ6dlpu13--