Subject: Re: CVS commit: src/sys/miscfs/procfs
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: source-changes
Date: 04/17/2003 20:45:06
On Apr 17, 11:18pm, jdolecek@netbsd.org (Jaromir Dolecek) wrote:
-- Subject: Re: CVS commit: src/sys/miscfs/procfs

getcwd_common() can get you the path most of the time...
One good reason is because you can relink back unlinked
files while they are open. It has saved my butt... Another reason is to
be able to write to a processes fd to get it unstuck. A third is just to
look at what a process has open.

christos

| Except there is no way to find full path to directory
| if you have only it's vnode.
| 
| There is another problem with the descriptor files in fd/ - they
| don't appear as 'procfs' nodes, so e.g. 'find /proc ! -type procfs'
| fails to skip them - that's another problem pointed out in kern/21187
| feedback. I'm looking at that problem right now.
| 
| What was reason to introduce fd/ again?
| 
| Jaromir 
| -- 
| 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.''     -=-
-- End of excerpt from Jaromir Dolecek