Subject: Re: nullfs mounts
To: None <tech-kern@netbsd.org>
From: Matthew Mondor <mmondor@gobot.ca>
List: tech-kern
Date: 01/18/2003 06:15:10
On Sat, Jan 18, 2003 at 01:36:00AM -0500, Andrew Brown wrote:

> it's not really a nullfs thing, iirc, but a weirdness of mount/umount
> in general.
> 
> note also, that even if you enable it, the /proc/$$/maps file will not
> show the pathnames.  at least, the last time i checked.  perhaps
> someone has fixed it.

It seemed to work for me on 1.6_STABLE when I tried... There was a mount
flag to set however for linux emulation support as well

> the two programs that i know of that do print pathnames are lsof and
> pmap.  they both grovel through kmem looking for the stuff and
> reconstruct the path manually after all the cached data has been
> sucked out.  it's not exactly trivial, though if you want to look at
> how it's done, read the pmap code.  the lsof code on the other hand,
> at the unfortunate cost of some readability, is decidely more
> portable.

Thanks alot, great references indeed

Matt