Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/miscfs/procfs



On Apr 17, 11:18pm, jdolecek%netbsd.org@localhost (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@localhost>            
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





Home | Main Index | Thread Index | Old Index