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@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
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