public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* How to get the file path from file handle - NFS.
@ 2010-09-09 12:24 Tayade, Nilesh
       [not found] ` <D3F292ADF945FB49B35E96C94C2061B90D1991A4-2s2rCY1e8UXHBhWB4kaBDUEOCMrvLtNR@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Tayade, Nilesh @ 2010-09-09 12:24 UTC (permalink / raw)
  To: linux-nfs

Hi,

I seek some pointers on how to obtain the file path from the file
handle. The NFS protocol exchange the file handle between the Server and
Client. 
I want to extract the file path at client side from the available file
handle. 

I went through some of the reference documents. It say- 
The mapping exists in /var/nfs/fhpath or /etc/default/nfslogd files. And
can be configured through /etc/nfs/nfslog.conf.
http://docstore.mik.ua/orelly/networking_2ndEd/nfs/ch14_06.htm

But essentially I am looking forward extracting it through application C
code (may be getting the pointer to the hash table etc.)- the reason
being I want to avoid file open, read operations (on the nfslogd file)
due to performance issue. 

Could someone please advice if it is possible to extract it through some
structure? Can we directly try to read the mapping hash table at client
side?


--
Thanks,
Nilesh
x46222
Yahoo IM: nilesh_tayade85

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to get the file path from file handle - NFS.
       [not found] ` <D3F292ADF945FB49B35E96C94C2061B90D1991A4-2s2rCY1e8UXHBhWB4kaBDUEOCMrvLtNR@public.gmane.org>
@ 2010-09-09 16:01   ` J. Bruce Fields
  2010-09-10  7:17     ` Tayade, Nilesh
  0 siblings, 1 reply; 4+ messages in thread
From: J. Bruce Fields @ 2010-09-09 16:01 UTC (permalink / raw)
  To: Tayade, Nilesh; +Cc: linux-nfs

On Thu, Sep 09, 2010 at 08:24:40AM -0400, Tayade, Nilesh wrote:
> Hi,
> 
> I seek some pointers on how to obtain the file path from the file
> handle. The NFS protocol exchange the file handle between the Server and
> Client. 
> I want to extract the file path at client side from the available file
> handle. 
> 
> I went through some of the reference documents. It say- 
> The mapping exists in /var/nfs/fhpath or /etc/default/nfslogd files. And
> can be configured through /etc/nfs/nfslog.conf.
> http://docstore.mik.ua/orelly/networking_2ndEd/nfs/ch14_06.htm

Looks like a Solaris thing?  This isn't the right list for that.

--b.

> 
> But essentially I am looking forward extracting it through application C
> code (may be getting the pointer to the hash table etc.)- the reason
> being I want to avoid file open, read operations (on the nfslogd file)
> due to performance issue. 
> 
> Could someone please advice if it is possible to extract it through some
> structure? Can we directly try to read the mapping hash table at client
> side?
> 
> 
> --
> Thanks,
> Nilesh
> x46222
> Yahoo IM: nilesh_tayade85
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: How to get the file path from file handle - NFS.
@ 2010-09-10  5:32 Tayade, Nilesh
  0 siblings, 0 replies; 4+ messages in thread
From: Tayade, Nilesh @ 2010-09-10  5:32 UTC (permalink / raw)
  To: linux-nfs

Resending the email. Seems like it bounced back.

> -----Original Message-----
> From: Tayade, Nilesh
> Sent: Thursday, September 09, 2010 5:55 PM
> To: linux-nfs@vger.kernel.org
> Subject: How to get the file path from file handle - NFS.
> 
> Hi,
> 
> I seek some pointers on how to obtain the file path from the file
> handle. The NFS protocol exchange the file handle between the Server
> and Client.
> I want to extract the file path at client side from the available
> file handle.
> 
> I went through some of the reference documents. It say-
> The mapping exists in /var/nfs/fhpath or /etc/default/nfslogd files.
> And can be configured through /etc/nfs/nfslog.conf.
> http://docstore.mik.ua/orelly/networking_2ndEd/nfs/ch14_06.htm
> 
> But essentially I am looking forward extracting it through
> application C code (may be getting the pointer to the hash table
> etc.)- the reason being I want to avoid file open, read operations
> (on the nfslogd file) due to performance issue.
> 
> Could someone please advice if it is possible to extract it through
> some structure? Can we directly try to read the mapping hash table
> at client side?
> 
> 
> --
> Thanks,
> Nilesh
> x46222
> Yahoo IM: nilesh_tayade85

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: How to get the file path from file handle - NFS.
  2010-09-09 16:01   ` J. Bruce Fields
@ 2010-09-10  7:17     ` Tayade, Nilesh
  0 siblings, 0 replies; 4+ messages in thread
From: Tayade, Nilesh @ 2010-09-10  7:17 UTC (permalink / raw)
  To: J. Bruce Fields; +Cc: linux-nfs

> -----Original Message-----
> From: J. Bruce Fields [mailto:bfields@fieldses.org]
> Sent: Thursday, September 09, 2010 9:31 PM
> To: Tayade, Nilesh
> Cc: linux-nfs@vger.kernel.org
> Subject: Re: How to get the file path from file handle - NFS.
> 
> On Thu, Sep 09, 2010 at 08:24:40AM -0400, Tayade, Nilesh wrote:
> > Hi,
> >
> > I seek some pointers on how to obtain the file path from the file
> > handle. The NFS protocol exchange the file handle between the
> Server and
> > Client.
> > I want to extract the file path at client side from the available
> file
> > handle.
> >
> > I went through some of the reference documents. It say-
> > The mapping exists in /var/nfs/fhpath or /etc/default/nfslogd
> files. And
> > can be configured through /etc/nfs/nfslog.conf.
> > http://docstore.mik.ua/orelly/networking_2ndEd/nfs/ch14_06.htm
> 
> Looks like a Solaris thing?  This isn't the right list for that.

Sorry for the clutter on the mailing list. Please ignore my recent email
(resent with the same contents). 
I shall contact the concerned community.

> 
> --b.
> 
> >


--
Thanks,
Nilesh




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-10  7:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09 12:24 How to get the file path from file handle - NFS Tayade, Nilesh
     [not found] ` <D3F292ADF945FB49B35E96C94C2061B90D1991A4-2s2rCY1e8UXHBhWB4kaBDUEOCMrvLtNR@public.gmane.org>
2010-09-09 16:01   ` J. Bruce Fields
2010-09-10  7:17     ` Tayade, Nilesh
  -- strict thread matches above, loose matches on Subject: below --
2010-09-10  5:32 Tayade, Nilesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox