Subject: Re: How to resolve the filename(s) for a vnode?
To: Charles M.Hannum <mycroft@MIT.EDU>
From: Jason Thorpe <>
List: tech-kern
Date: 10/18/2005 12:04:44
On Oct 18, 2005, at 11:04 AM, Charles M. Hannum wrote:

> Quoting Jason Thorpe <>:
>> FWIW, I would like to have a vn_getpath() type function in the  
>> NetBSD  kernel.  It should not be that difficult to add for file  
>> systems that  participate in the namei cache.
> What, exactly, would you use this for?  Path->vnode bindings are  
> ephemeral and
> cannot be relied on for much without introducing security holes.

There are applications where:

1- You might want to provide the path name in a log message for  
informational purposes.

2- Record the path name for future use.

-- thorpej