Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

translate NFS filehandle -> pathname without ncheck inode?

2 views
Skip to first unread message

George Savvides

unread,
May 24, 2001, 2:27:28 AM5/24/01
to
I need to extrapolate the pathname to a file from an NFS file handle.
What I have available are the regular NFS calls, as well as the
standard Unix/Linux filesystem commands. The only way to do this that I have
come up with so far is:

-use GETATTR to get the file attributes corresponding to the file
handle from NFS

-figure out the inode from the file attributes

-run ncheck to resolve the pathname.

The problem is that ncheck is a prohibitively expensive operation
(takes forever), and the application that I need it for makes such
calls quite frequently. Are there any alternative ways to do this in Linux, Unix or BSD?

0 new messages