From: Jeff Layton <jlayton@redhat.com>
To: "Steve French" <smfrench@gmail.com>
Cc: linux-cifs-client@lists.samba.org,
samba-technical@lists.samba.org, linux-fsdevel@vger.kernel.org
Subject: Re: [linux-cifs-client] Re: mount options for selectively disabling parts of CIFS Unix Extensions
Date: Tue, 17 Jul 2007 07:57:14 -0400 [thread overview]
Message-ID: <20070717075714.78af7b69.jlayton@redhat.com> (raw)
In-Reply-To: <524f69650707161611r4e29273cn751ffce503bd2d49@mail.gmail.com>
On Mon, 16 Jul 2007 18:11:02 -0500
"Steve French" <smfrench@gmail.com> wrote:
> I would like opinions on how to handle a specific use question ...
>
> if the user has mounted e.g. \\server1\shareA (e.g. on a Samba
> server) using defaults (and thus gotten support for the Unix
> Extensions, but then does a second mount trying to disable Unix
> Extensions (e.g. "mount -t cifs //server1/shareB /mnt -o nounix" then
> what should the result be:
>
>
> 1) mount fails? If so what return code - there is no easy way to pass
> error strings back across mount (get_sb returns an int - a posix
> return code)
>
> 2) mount succeeds, ignoring the "nounix" option but prints a warning to dmesg
>
> 3) mount succeeds but turns off the Unix Capability bits so no Unix
> Extension requests are sent on either shareA or shareB (although the
> server behavior will still be a little different than if the client
> had not negotiated Unix Extensions at all, at least it will be
> different unless the session drops and is reconnected at which time
> the server will see the Unix Extensions disabled)
>
> 4) mount succeeds and no Unix Extension requests are sent on the tree
> id for shareB (the requests to shareA are unaffected)
>
> etc.
>
> Ideas?
>
Following the principle of least suprise, then #4 would be best. If
that's problematic, then I'd suggest just failing the mount outright
with an -EBUSY.
NFS has just gone through a not too dissimilar situation (mounting the
same export twice with different options). It now fails with -EBUSY in
that situation. A new mount option was also introduced (nosharedcache)
that makes it fall back on the previous behavior (not sharing
superblocks between mounts of the same export).
--
Jeff Layton <jlayton@redhat.com>
next prev parent reply other threads:[~2007-07-17 11:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-16 22:40 mount options for selectively disabling parts of CIFS Unix Extensions Steve French
2007-07-16 23:11 ` Steve French
2007-07-17 11:30 ` Jan Engelhardt
2007-07-17 11:57 ` Jeff Layton [this message]
2007-07-17 18:49 ` [linux-cifs-client] " Trond Myklebust
2007-07-17 22:09 ` Steve French
2007-07-18 2:17 ` Trond Myklebust
2007-07-17 12:49 ` J. Bruce Fields
2007-07-17 14:13 ` Steve French
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=20070717075714.78af7b69.jlayton@redhat.com \
--to=jlayton@redhat.com \
--cc=linux-cifs-client@lists.samba.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=samba-technical@lists.samba.org \
--cc=smfrench@gmail.com \
/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).