linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Valerie Aurora <vaurora@redhat.com>
To: linux-fsdevel@vger.kernel.org
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>,
	"J. Bruce Fields" <bfields@fieldses.org>,
	Jeff Layton <jlayton@redhat.com>
Subject: NFS hard read-only mount option - again
Date: Mon, 26 Apr 2010 19:58:33 -0400	[thread overview]
Message-ID: <20100426235832.GB13549@shell> (raw)

I want to restart the discussion we had last July (!) about an NFS
hard read-only mount option.  A common use case of union mounts is a
cluster with NFS mounted read-only root file systems, with a local fs
union mounted on top.  Here's the last discussion we had:

http://kerneltrap.org/mailarchive/linux-fsdevel/2009/7/16/6211043/thread

We can assume a local mechanism that lets the server enforce the
read-only-ness of the file system on the local machine (the server can
increment sb->s_hard_readonly_users on the local fs and the VFS will
take care of the rest).

The main question is what to do on the client side when the server
changes its mind and wants to write to that file system.  On the
server side, there's a clear synchronization point:
sb->s_hard_readonly_users needs to be decremented, and so we don't
have to worry about a hard readonly exported file system going
read-write willy-nilly.

But the client has to cope with the sudden withdrawal of the read-only
guarantee.  A lowest common denominator starting point is to treat it
as though the mount went away entirely, and force the client to
remount and/or reboot.  I also have vague ideas about doing something
smart with stale file handles and generation numbers to avoid a
remount.  This looks a little bit like the forced umount patches too,
where we could EIO any open file descriptors on the old file system.

How long would it take to implement the dumb "NFS server not
responding" version?

-VAL

             reply	other threads:[~2010-04-26 23:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 23:58 Valerie Aurora [this message]
2010-04-27 11:51 ` NFS hard read-only mount option - again Jeff Layton
2010-04-28 20:07   ` Valerie Aurora
2010-04-28 20:34     ` Jeff Layton
2010-04-28 20:56       ` J. Bruce Fields
2010-05-04 22:51         ` Valerie Aurora
2010-05-05  7:22           ` Jeff Layton
2010-05-06 15:01             ` Valerie Aurora

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=20100426235832.GB13549@shell \
    --to=vaurora@redhat.com \
    --cc=Trond.Myklebust@netapp.com \
    --cc=bfields@fieldses.org \
    --cc=jlayton@redhat.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;
as well as URLs for NNTP newsgroup(s).