From: Mi Jinlong <mijinlong@cn.fujitsu.com>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: Steve Dickson <SteveD@redhat.com>,
NFSv3 list <linux-nfs@vger.kernel.org>,
"Trond.Myklebust" <trond.myklebust@fys.uio.no>
Subject: Re: [PATCH] mount: make sure mount correctly when kernel not support NFSv4
Date: Tue, 30 Nov 2010 14:54:50 +0800 [thread overview]
Message-ID: <4CF49FBA.2030601@cn.fujitsu.com> (raw)
In-Reply-To: <96BE5F60-06F3-4CE9-8C1D-713992D3F246@oracle.com>
Chuck Lever :
> On Nov 25, 2010, at 12:54 AM, Mi Jinlong wrote:
>
>> When user's nfs client(kernel) don't support NFSv4, maybe they build
>> kernel without NFSv4, there is a problem.
>>
>> When using command "mount SERVER-IP:/nfsv3 /mnt/" to mount NFSv3
>> filesystem, mount will fail and get error:
>>
>> "mount.nfs: an incorrect mount option was specified"
>>
>> as above, the mount should success, but it fail.
>>
>> When the mount command without specific NFS version, nfs-utils will
>> try to mount NFSv4 at first, but the kernel don't support, the kernel
>> will return with error EINVAL for parsing option (vers=4) fail.
>
> Maybe the kernel should return EOPNOTSUPP in that case?
Yes, what about the following patch.
--
thanks
Mi Jinlong
---------------------------------------------------------------------------------
next prev parent reply other threads:[~2010-11-30 6:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-25 5:54 [PATCH] mount: make sure mount correctly when kernel not support NFSv4 Mi Jinlong
2010-11-29 14:40 ` Chuck Lever
2010-11-30 6:54 ` Mi Jinlong [this message]
2010-11-30 15:13 ` 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=4CF49FBA.2030601@cn.fujitsu.com \
--to=mijinlong@cn.fujitsu.com \
--cc=SteveD@redhat.com \
--cc=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/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