🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.networking
Article #647

translate NFS filehandle -> pathname without ncheck inode?

#647
From: George Savvides
Date: Thu, 24 May 2001 06:27
15 lines
1899 bytes
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?
Technical Details
Message-ID: <f22c6577.0105232227.1b8f5ce7@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fe50f,cb60c6ccfd14ae00,start
X-Google-Attributes: gidfe50f,public
X-Google-Thread: 1070f0,cb60c6ccfd14ae00,start
X-Google-Attributes: gid1070f0,public
X-Google-Thread: 111b49,cb60c6ccfd14ae00,start
X-Google-Attributes: gid111b49,public
X-Google-Thread: 10669a,cb60c6ccfd14ae00,start
X-Google-Attributes: gid10669a,public
X-Google-Thread: 115217,cb60c6ccfd14ae00,start
X-Google-Attributes: gid115217,public
X-Google-ArrivalTime: 2001-05-23 23:27:29 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail
From: savvides@mit.edu (George Savvides)
Newsgroups: comp.os.linux.networking,comp.sys.sun.admin,comp.protocols.nfs,fa.sun-manager,fa.linux.kernel
Subject: translate NFS filehandle ->  pathname without ncheck inode?
Date: 23 May 2001 23:27:28 -0700
Organization: http://groups.google.com/
Lines: 15
Message-ID: <f22c6577.0105232227.1b8f5ce7@posting.google.com>
NNTP-Posting-Host: 207.172.11.232
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 990685649 23687 127.0.0.1 (24 May 2001 06:27:29 GMT)
X-Complaints-To: groups-support@google.com
NNTP-Posting-Date: 24 May 2001 06:27:29 GMT