All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mount.nfs: Teach mount.nfs about the mountversion option
@ 2015-07-06 14:42 Steve Dickson
  2015-07-06 15:19 ` Trond Myklebust
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Steve Dickson @ 2015-07-06 14:42 UTC (permalink / raw)
  To: Linux NFS Mailing list

When the mountversion option is used, there should
not be any mount negotiations with the server.

Also, when the option is used, its know that the mount
is a v4 mount and a V_SPECFIC type.

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 utils/mount/network.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/utils/mount/network.c b/utils/mount/network.c
index b5ed850..ebc39d3 100644
--- a/utils/mount/network.c
+++ b/utils/mount/network.c
@@ -92,6 +92,7 @@ static const char *nfs_version_opttbl[] = {
 	"v4",
 	"vers",
 	"nfsvers",
+	"minorversion",
 	NULL,
 };
 
@@ -1272,7 +1273,11 @@ nfs_nfs_version(struct mount_options *options, struct nfs_version *version)
 	if (!(version->major = strtol(version_val, &cptr, 10)))
 		goto ret_error;
 
-	if (version->major < 4)
+	if (strcmp(nfs_version_opttbl[i], "minorversion") == 0) {
+		version->v_mode = V_SPECIFIC;
+		version->minor = version->major;
+		version->major = 4;
+	} else if (version->major < 4)
 		version->v_mode = V_SPECIFIC;
 
 	if (*cptr == '.') {
-- 
2.4.3


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-11-21 15:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06 14:42 [PATCH] mount.nfs: Teach mount.nfs about the mountversion option Steve Dickson
2015-07-06 15:19 ` Trond Myklebust
2015-07-06 16:50   ` Steve Dickson
2015-07-06 16:53     ` Trond Myklebust
2015-07-06 17:36       ` Steve Dickson
2015-07-06 22:21   ` Kinglong Mee
2015-07-06 22:29     ` Trond Myklebust
2015-07-10 15:49       ` Steve Dickson
2015-11-20 15:23 ` Steve Dickson
2015-11-21 15:34 ` Steve Dickson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.