From: Valerie Aurora <vaurora@redhat.com>
To: Erez Zadok <ezk@cs.sunysb.edu>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Jan Blunck <jblunck@suse.de>,
Christoph Hellwig <hch@infradead.org>,
linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org
Subject: Re: Union mounts, NFS, and locking
Date: Tue, 14 Jul 2009 20:19:33 -0400 [thread overview]
Message-ID: <20090715001933.GI27582@shell> (raw)
In-Reply-To: <200907142233.n6EMXRQp019008@agora.fsl.cs.sunysb.edu>
On Tue, Jul 14, 2009 at 06:33:27PM -0400, Erez Zadok wrote:
> In message <20090714220515.GH27582@shell>, Valerie Aurora writes:
> > On Tue, Jul 14, 2009 at 04:36:40PM -0400, Erez Zadok wrote:
> > > In message <20090714201940.GF27582@shell>, Valerie Aurora writes:
> > >
> > > > Okay, so my best idea for a solution is to introduce a new NFS mount
> > > > option that means the server promises that the exported file system is
> > > > read-only (using superblock read-only count scheme locally). E.g.:
> > >
> > > How would the server be able to guarantee that? Are you planning to change
> > > the protocol or implementation somehow? Are you assuming that the server
> > > will be running linux w/ special r/o sb support? If so, it won't work on
> > > other platforms (NFS is supposed to be interoperable in principle :-)
> > >
> > > Without a protocol change, such an option (if I understood you), is at best
> > > a server promise to "behave nice."
> >
> > Yeah, it's just a promise, one that the NFS server shouldn't make if
> > it can't implement it. The client's sole responsibility is to fail
> > gracefully if the server breaks its promise.
> [...]
>
> How would the client detect that the server broke the promise?
The same way we detect other NFS server bugs - frequently by crashing
the client, but in the best case hitting code like:
fs/nfs/inode.c.:
if (!fattr->nlink) {
printk("NFS: Buggy server - nlink == 0!\n");
goto out_no_inode;
}
If the server happily mounts with the server_ro option, and then
writes to the exported file system, it's buggy. Deal accordingly.
-VAL
next prev parent reply other threads:[~2009-07-15 0:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-14 17:48 Union mounts, NFS, and locking Valerie Aurora
2009-07-14 18:19 ` Erez Zadok
[not found] ` <200907141819.n6EIJQi1014319-zop+azHP2WsZjdeEBZXbMidm6ipF23ct@public.gmane.org>
2009-07-14 20:19 ` Valerie Aurora
2009-07-14 20:36 ` Erez Zadok
[not found] ` <200907142036.n6EKaexe017464-zop+azHP2WsZjdeEBZXbMidm6ipF23ct@public.gmane.org>
2009-07-14 22:05 ` Valerie Aurora
2009-07-14 22:33 ` Erez Zadok
[not found] ` <200907142233.n6EMXRQp019008-zop+azHP2WsZjdeEBZXbMidm6ipF23ct@public.gmane.org>
2009-07-14 22:55 ` Trond Myklebust
[not found] ` <1247612140.5332.11.camel-rJ7iovZKK19ZJLDQqaL3InhyD016LWXt@public.gmane.org>
2009-07-16 0:15 ` Erez Zadok
2009-07-15 0:19 ` Valerie Aurora [this message]
2009-07-15 17:27 ` J. Bruce Fields
[not found] ` <20090715172758.GA13893-uC3wQj2KruNg9hUCZPvPmw@public.gmane.org>
2009-07-16 17:25 ` Valerie Aurora
2009-07-16 21:22 ` David P. Quigley
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=20090715001933.GI27582@shell \
--to=vaurora@redhat.com \
--cc=Trond.Myklebust@netapp.com \
--cc=ezk@cs.sunysb.edu \
--cc=hch@infradead.org \
--cc=jblunck@suse.de \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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).