public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: "Tayade, Nilesh" <Nilesh.Tayade@netscout.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: How to get the file path from file handle - NFS.
Date: Thu, 9 Sep 2010 12:01:06 -0400	[thread overview]
Message-ID: <20100909160106.GE8597@fieldses.org> (raw)
In-Reply-To: <D3F292ADF945FB49B35E96C94C2061B90D1991A4-2s2rCY1e8UXHBhWB4kaBDUEOCMrvLtNR@public.gmane.org>

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

  parent reply	other threads:[~2010-09-09 16:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2010-09-10  7:17     ` Tayade, Nilesh
  -- strict thread matches above, loose matches on Subject: below --
2010-09-10  5:32 Tayade, Nilesh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100909160106.GE8597@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Nilesh.Tayade@netscout.com \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox