All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Banks <gnb@sgi.com>
To: Erik Walthinsen <omega@pdxcolo.net>
Cc: nfs@lists.sourceforge.net
Subject: Re: Converting open filehandles to pathnames
Date: Sun, 9 May 2004 17:24:18 +1000	[thread overview]
Message-ID: <20040509072418.GB18762@sgi.com> (raw)
In-Reply-To: <1084059203.714.13.camel@omikron>

On Sat, May 08, 2004 at 04:33:28PM -0700, Erik Walthinsen wrote:
> I've got an NFS server with client machines running User-mode Linux. 
>[...]
> My question: is there some means of divining the device/inode of a
> filehandle?  I looked around the NFS and VFS code and found nothing that
> looked promising, but I don't really understand the VFS subsystem.

Generally the device and inode of the file are encoded in the
file handle itself rather than mapped in the server; this is
the easiest way of satisfying the requirement that the filehandles
be stable across server reboots.

If your NFS server is a Linux box, see the comments in
include/linux/nfsd/nfsfh.h for a description of the format
of Linux' file handles.

Also, ethereal will pick apart and display Linux file handles
(unless the underlying server fs is XFS).

Greg.
-- 
Greg Banks, R&D Software Engineer, SGI Australian Software Group.
I don't speak for SGI.


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

  reply	other threads:[~2004-05-09  7:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-08 23:33 Converting open filehandles to pathnames Erik Walthinsen
2004-05-09  7:24 ` Greg Banks [this message]
2004-05-09  0:43   ` Erik Walthinsen
2004-05-10  0:26     ` seth vidal
2004-05-10  3:00       ` Garrick Staples
2004-05-09 21:11         ` Erik Walthinsen
2004-05-10  8:02           ` Bogdan Costescu
2004-05-10 14:20             ` Erik Walthinsen

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=20040509072418.GB18762@sgi.com \
    --to=gnb@sgi.com \
    --cc=nfs@lists.sourceforge.net \
    --cc=omega@pdxcolo.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.