linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Christoph Hellwig <hch@infradead.org>
Cc: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>,
	Chuck Lever <chuck.lever@oracle.com>,
	linux-nfs@vger.kernel.org, Trond.Myklebust@netapp.com
Subject: Re: State of NFSv4 VolatileFilehandles
Date: Fri, 5 Aug 2011 15:16:10 -0400	[thread overview]
Message-ID: <20110805191610.GA16880@fieldses.org> (raw)
In-Reply-To: <20110805133833.GA2282@infradead.org>

On Fri, Aug 05, 2011 at 09:38:33AM -0400, Christoph Hellwig wrote:
> On Thu, Aug 04, 2011 at 12:03:44PM -0400, J. Bruce Fields wrote:
> > The client has no way of knowing that an export is read only.  (Or that
> > the server guarantees the safety of looking up names again in the more
> > general cases Neil describes.)  Unless we decide that a server is making
> > an implicit guarantee of that just by exposing volatile filehandles at
> > all.  Doesn't sound like the existing spec really says that, though.
> > 
> > If an examination of existing implementations and/or some sort of new
> > spec language could reassure us that servers will only ever expose
> > volatile filehandles when it's safe to do so, then maybe it would make
> > sense for the client to implement volatile filehandle recovery?
> > 
> > But if there's a chance of "unsafe" servers out there, then it would
> > seem like a trap for the unwary user....
> > 
> > Your rootfs's probably aren't terribly large--could you copy around
> > compressed block-level images instead of doing rsync?
> 
> Another scheme is to disconnect the file handles from the inode number.
> I implemented this a couple years ago for a customer.  Basically add
> an extended attribute into each inode that contains the nfs file handle,
> and that handle stays the same independent of the inode number.  The
> added complexity is that you need a new lookup data structure mapping

And that data structure should be persistent--how were you storing it?

> from your nfs handle to something that can be used to find the inode
> (inode number typically).

Interesting, I've wondered before how well that would work.  Any lessons
learned?

--b.

  reply	other threads:[~2011-08-05 19:16 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-02 11:58 State of NFSv4 VolatileFilehandles Venkateswararao Jujjuri
2011-08-02 14:53 ` Chuck Lever
2011-08-03  7:28   ` Venkateswararao Jujjuri
2011-08-03 12:27     ` Myklebust, Trond
2011-08-03 22:23       ` NeilBrown
2011-08-04  1:16         ` Malahal Naineni
2011-08-04  2:12           ` Trond Myklebust
2011-08-15 20:49         ` Malahal Naineni
2011-08-16  8:06           ` Trond Myklebust
2011-08-16 15:59             ` Malahal Naineni
2011-08-16 22:24               ` NeilBrown
2011-08-03 15:43     ` Malahal Naineni
2011-08-03 22:13     ` Chuck Lever
2011-08-04 11:27       ` Venkateswararao Jujjuri
2011-08-04 16:03         ` J. Bruce Fields
2011-08-04 16:10           ` Trond Myklebust
2011-08-04 16:27             ` J. Bruce Fields
2011-08-04 16:48               ` Myklebust, Trond
2011-08-04 17:03                 ` J. Bruce Fields
2011-08-04 17:21                   ` Trond Myklebust
2011-08-04 17:30                     ` J. Bruce Fields
2011-08-04 17:38                       ` Trond Myklebust
2011-08-05 13:38           ` Christoph Hellwig
2011-08-05 19:16             ` J. Bruce Fields [this message]
2011-08-10 10:24               ` Christoph Hellwig
2011-08-04 15:56     ` J. Bruce Fields

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=20110805191610.GA16880@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=Trond.Myklebust@netapp.com \
    --cc=chuck.lever@oracle.com \
    --cc=hch@infradead.org \
    --cc=jvrao@linux.vnet.ibm.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;
as well as URLs for NNTP newsgroup(s).