Re: [PATCH 4/4] mount.nfs: Prepare way for "vers=4,rdma" mounts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 09/07/2010 04:14 PM, Chuck Lever wrote:
> 
> On Sep 7, 2010, at 4:07 PM, Steve Dickson wrote:
> 
>>
>>
>> On 09/07/2010 12:26 PM, Chuck Lever wrote:
>>> At some point, when the kernel starts to support "vers=4,rdma" mounts,
>>> we will want the mount.nfs command to pass "vers=4,rdma" mounts
>>> instead of rejecting them.
>>>
>>> Assuming that the kernel will reject these today with EPROTONOSUPPORT,
>>> that would cause the version fallback logic to go to "vers=3,rdma"
>>> automatically.  So the extra check we have now is not needed anyway.
>>>
>>> Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
>>> ---
>>>
>>> utils/mount/stropts.c |    7 -------
>>> 1 files changed, 0 insertions(+), 7 deletions(-)
>>>
>>> diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c
>>> index 9695c73..a8b22ce 100644
>>> --- a/utils/mount/stropts.c
>>> +++ b/utils/mount/stropts.c
>>> @@ -302,13 +302,6 @@ static int nfs_set_version(struct nfsmount_info *mi)
>>>
>>> 	if (strncmp(mi->type, "nfs4", 4) == 0)
>>> 		mi->version = 4;
>>> -	else {
>>> -		unsigned long protocol;
>>> -		if (!nfs_nfs_protocol(mi->options, &protocol))
>>> -			return 0;
>>> -		if (protocol == NFSPROTO_RDMA)
>>> -			mi->version = 3;
>>> -	}
>>>
>>> 	/*
>>> 	 * If we still don't know, check for version-specific
>>>
>> This is a show stopper... We can default to v4 because the callbacks.
> 
> Again, this patch was for comments only, it isn't required.  
I guess I missed that in your description.

> But I don't understand your comment.
We can not default to v4 because of the callbacks.

> 
> We don't default to NFSv4 for RDMA today, because of the if clause I remove here.  
> If no version is specified, it defaults to vers=3 for RDMA mounts.
no... this is not the case with the above patched applied... 
I do have a way to test... 

> 
> I suggest we make it default to v4 in this case.  What is the callback requirement?
Its not clear they work... 

steved.

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux