Construct the path to a vnode.
- macOS 10.4+
The vnode whose path to obtain.
Destination for pathname; should be of size MAXPATHLEN
Destination for length of resulting path string. Result will include NULL-terminator in count--that is, "len" will be strlen(pathbuf) + 1.
0 for success or an error code.
Paths to vnodes are not always straightforward: a file with multiple hard-links will have multiple pathnames, and it is sometimes impossible to determine a vnode's full path. vn_getpath() will not enter the filesystem.