vn_fullpath() again

Kamal R. Prasad kamalpr at gmail.com
Tue Sep 6 08:54:07 PDT 2005


> 
> [snip]

  
I did. You just don't get it. A file may be associated with zero,
> one or more names and none of these names are more correct or
> authoritative than any of the others. If a user does 'ln /bin/ls
> /tmp' (assuming /bin and /tmp are on the same filesystem), it may be
> obvious to you that /bin/ls is the "real name" is /tmp/ls is just an
> alias, but it is not obvious to the kernel. In fact, the kernel is
> unable to see any difference at all between these two names.

 Yes -but when a user requests a mapping of vnode to pathname, he is asking 
in the context of files he has accessed (recently). In this context, the 
name cache does suffice -but unfortunately not every unix variant provides 
access to it.
 regards
-kamal


More information about the freebsd-hackers mailing list