All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Sharp <andy@ccpu.com>
To: linux-fsdevel@vger.kernel.org
Subject: Re: nfs exporting my stacked fs
Date: Fri, 30 May 2003 16:30:03 -0700	[thread overview]
Message-ID: <20030530233003.GA15469@ccpu.com> (raw)
In-Reply-To: <shsznl4hvzi.fsf@charged.uio.no>

On Sat, May 31, 2003 at 01:10:09AM +0200, Trond Myklebust wrote:
> >>>>> " " == Bryan Henderson <hbryan@us.ibm.com> writes:
> 
>      > This is true in any instant, but for most NFS purposes, we also
>      > care about identifying a file uniquely over time, even when
>      > that time might involve sea changes such as a reboot.  E.g. one
>      > would like to make sure that a file handle that referred to
>      > file A an hour ago still refers to file A now.
> 
> According to RFC1813 (which clarifies common practices for RFC1094)
> file handles are *unique*. More specifically:
> 
>   "If two file handles from the same server are equal, they must refer
>   to the same file, but if they are not equal, no conclusions can be
>   drawn."
> 
> RFC1813 makes no exceptions to this rule. Including for time....

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.  As far as being able to
find the right file from a file handle, no matter how dusty, my fs has
the same problem as NFS in this regard.  A bit of challenge on Linux if
one hopes to maintain a proper dcache.

> The one thing that is allowed, is that the server may revoke a
> filehandle if (and only if) the file no longer exists, or if access to
> the file has been revoked.
> 
> 
> IOW: the condition you describe above is trivially observed...

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.

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

a

  reply	other threads:[~2003-05-30 23:16 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 [this message]
2003-05-30 23:44             ` Trond Myklebust
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=20030530233003.GA15469@ccpu.com \
    --to=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 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.