Subject: Re: How to resolve the filename(s) for a vnode?
To: None <>
From: Jason Thorpe <>
List: tech-kern
Date: 10/18/2005 10:49:57
On Oct 17, 2005, at 1:32 PM, Gerhard Sittig wrote:

> Resolving the filename (at least one of them) for a vnode is not
> supported by the OS directly.  FreeBSD has vn_fullpath(), MacOS X has
> vn_getpath(), Linux has __d_path() although it's not public, NetBSD
> seems to lack such a routine.  From the CVS logs of later versions (3
> and 4, I currently use 2.0.2) I could not see that such a thing was
> introduced -- and would be glad to be wrong here.  So I had to roll a
> resolving routine myself.  That's where even more problems are  
> bubbling
> up. :)

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.

-- thorpej