Commit e887cbcf authored by Chuck Lever's avatar Chuck Lever Committed by Trond Myklebust

NFS: Remove support for the 'mountprog' option

Remove the mount option that allows users to specify an alternate mountd
program number.  The client hasn't support setting an alternate mountd
program number for a very long time.
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent ad879cef
...@@ -52,7 +52,6 @@ struct nfs_parsed_mount_data { ...@@ -52,7 +52,6 @@ struct nfs_parsed_mount_data {
struct sockaddr_in address; struct sockaddr_in address;
char *hostname; char *hostname;
char *export_path; char *export_path;
unsigned int program;
int protocol; int protocol;
} nfs_server; } nfs_server;
}; };
......
...@@ -83,7 +83,7 @@ enum { ...@@ -83,7 +83,7 @@ enum {
Opt_actimeo, Opt_actimeo,
Opt_namelen, Opt_namelen,
Opt_mountport, Opt_mountport,
Opt_mountprog, Opt_mountvers, Opt_mountvers,
Opt_nfsvers, Opt_nfsvers,
/* Mount options that take string arguments */ /* Mount options that take string arguments */
...@@ -137,7 +137,6 @@ static match_table_t nfs_mount_option_tokens = { ...@@ -137,7 +137,6 @@ static match_table_t nfs_mount_option_tokens = {
{ Opt_userspace, "retry=%u" }, { Opt_userspace, "retry=%u" },
{ Opt_namelen, "namlen=%u" }, { Opt_namelen, "namlen=%u" },
{ Opt_mountport, "mountport=%u" }, { Opt_mountport, "mountport=%u" },
{ Opt_mountprog, "mountprog=%u" },
{ Opt_mountvers, "mountvers=%u" }, { Opt_mountvers, "mountvers=%u" },
{ Opt_nfsvers, "nfsvers=%u" }, { Opt_nfsvers, "nfsvers=%u" },
{ Opt_nfsvers, "vers=%u" }, { Opt_nfsvers, "vers=%u" },
...@@ -786,13 +785,6 @@ static int nfs_parse_mount_options(char *raw, ...@@ -786,13 +785,6 @@ static int nfs_parse_mount_options(char *raw,
return 0; return 0;
mnt->mount_server.port = option; mnt->mount_server.port = option;
break; break;
case Opt_mountprog:
if (match_int(args, &option))
return 0;
if (option < 0)
return 0;
mnt->mount_server.program = option;
break;
case Opt_mountvers: case Opt_mountvers:
if (match_int(args, &option)) if (match_int(args, &option))
return 0; return 0;
...@@ -1082,7 +1074,6 @@ static int nfs_validate_mount_data(void *options, ...@@ -1082,7 +1074,6 @@ static int nfs_validate_mount_data(void *options,
args->acdirmin = 30; args->acdirmin = 30;
args->acdirmax = 60; args->acdirmax = 60;
args->mount_server.protocol = XPRT_TRANSPORT_UDP; args->mount_server.protocol = XPRT_TRANSPORT_UDP;
args->mount_server.program = NFS_MNT_PROGRAM;
args->nfs_server.protocol = XPRT_TRANSPORT_TCP; args->nfs_server.protocol = XPRT_TRANSPORT_TCP;
switch (data->version) { switch (data->version) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment