From: Trond Myklebust <Trond.Myklebust@netapp.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 4/5] NFS: set transport defaults after mount option parsing is finished
Date: Thu, 12 Jun 2008 12:57:37 -0400 [thread overview]
Message-ID: <1213289857.14478.10.camel@localhost> (raw)
In-Reply-To: <20080612163756.13197.37893.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
On Thu, 2008-06-12 at 12:37 -0400, Chuck Lever wrote:
> Address some unfortunate mount option parsing behavior by setting certain
> transport-based defaults *after* option parsing is complete.
>
> o Some options don't obey the "rightmost wins" rule. Jeff Layton
> noticed that specifying the "proto=" mount option after the "retrans"
> or "timeo" options will cause the retrans and timeo values to be
> overwritten with default settings.
>
> Allow these options to be specified in any order without unexpectedly
> reverting retrans and timeo to their default.
>
> o I've received several reports that text-based mounting through
> firewalls that block UDP fails, even if "proto=tcp" is specified.
>
> If a user specifies "proto=tcp" via the legacy mount API, the mount
> command also uses TCP to contact the server's mount daemon. Ditto
> for "proto=udp". We want the kernel's mount option to emulate this
> behavior; however, we still want the default mount protocol to be UDP
> if no transport options were specified.
Why is it necessary to set these defaults in nfs_parse_mount_options?
This is quite unrelated to parsing of the mount string.
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
next prev parent reply other threads:[~2008-06-12 16:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-12 16:37 [PATCH 0/5] For 2.6.27: NFS mount option parsing fix-ups Chuck Lever
[not found] ` <20080612163416.13197.92911.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-06-12 16:37 ` [PATCH 1/5] NFS: Allow any value for the "retry" option Chuck Lever
2008-06-12 16:37 ` [PATCH 2/5] NFS: Treat "intr" and "nointr" options as deprecated Chuck Lever
2008-06-12 16:37 ` [PATCH 3/5] NFS: missing newline in NFS mount debugging message Chuck Lever
2008-06-12 16:37 ` [PATCH 4/5] NFS: set transport defaults after mount option parsing is finished Chuck Lever
[not found] ` <20080612163756.13197.37893.stgit-meopP2rzCrTwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2008-06-12 16:57 ` Trond Myklebust [this message]
2008-06-12 19:34 ` Chuck Lever
2008-06-12 16:38 ` [PATCH 5/5] NFS: use documenting macro constants for initializing ac{reg, dir}{min, max} Chuck Lever
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=1213289857.14478.10.camel@localhost \
--to=trond.myklebust@netapp.com \
--cc=chuck.lever@oracle.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