Linux filesystem development
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Andrew Sharp <andy@ccpu.com>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: nfs exporting my stacked fs
Date: 31 May 2003 01:44:27 +0200	[thread overview]
Message-ID: <shsfzmw3spw.fsf@charged.uio.no> (raw)
In-Reply-To: <20030530233003.GA15469@ccpu.com>

>>>>> " " == Andrew Sharp <andy@ccpu.com> writes:

     > Yes.  At first I was annoyed that the Linux NFS client peeks at
     > the file handle, because sometimes I want to change it for the
     > same file, but then it turns out that the solution to another
     > problem of mine fixes that as well.  And now it sounds like the
     > v4 file handle won't be considered opaque for the client any
     > more.

All v2/v3/v4 file handles are opaque as far as the client is
concerned. The only issue is that of uniqueness. Whereas NFSv2/v3 do
not support the concept of a filehandle that is not unique over time,
NFSv4 does (in theory) by means of the concept of "volatile
filehandles".

Note though that NFSv4 volatile filehandles have a number of unsolved
race conditions associated to them. I would recommend that people stay
away from them if at all possible.

     > I take it then that the fsid returned by ->statfs is largely
     > not used right now?  My version of nfs-utils (1.0) doesn't
     > support the fsid option in config files, so I've just hacked
     > the kernel to get me through this part of the development
     > phase.

The fsid is unused for NFSv2/v3. It is very important for NFSv4, as
the latter allows the server to cross mount points (rather like the
somewhat ill-defined "nohide" option did for NFSv2/v3).

In NFSv4, the client is expected to automount the new partition if we
cross a mount point on the server. Crossing a mount point is detected
by means of the fsid change...

     > I'm guessing that all or part of this stuff is handled a bit
     > differently in 2.5?

Not yet. However it will be once we fix the NFSv4 behaviour.

Cheers,
  Trond

  reply	other threads:[~2003-05-30 23:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-28 21:57 nfs exporting my stacked fs Andrew Sharp
2003-05-28 23:05 ` Neil Brown
2003-05-29  5:29   ` Andrew Sharp
2003-05-30  4:04     ` Neil Brown
2003-05-30  8:20       ` Trond Myklebust
2003-05-30 16:24       ` Bryan Henderson
2003-05-30 23:10         ` Trond Myklebust
2003-05-30 23:30           ` Andrew Sharp
2003-05-30 23:44             ` Trond Myklebust [this message]
2003-05-31  0:12           ` Bryan Henderson
2003-05-31  2:44             ` Trond Myklebust
2003-06-02 16:13               ` Bryan Henderson
  -- strict thread matches above, loose matches on Subject: below --
2003-06-05 15:38 David Chow
2003-06-05 16:30 ` Bryan Henderson

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=shsfzmw3spw.fsf@charged.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --cc=andy@ccpu.com \
    --cc=linux-fsdevel@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