diff options
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 7d84d94fa827..1a18ca390ddf 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -84,7 +84,7 @@ enum { | |||
84 | Opt_namelen, | 84 | Opt_namelen, |
85 | Opt_mountport, | 85 | Opt_mountport, |
86 | Opt_mountprog, Opt_mountvers, | 86 | Opt_mountprog, Opt_mountvers, |
87 | Opt_nfsprog, Opt_nfsvers, | 87 | Opt_nfsvers, |
88 | 88 | ||
89 | /* Mount options that take string arguments */ | 89 | /* Mount options that take string arguments */ |
90 | Opt_sec, Opt_proto, Opt_mountproto, | 90 | Opt_sec, Opt_proto, Opt_mountproto, |
@@ -139,7 +139,6 @@ static match_table_t nfs_mount_option_tokens = { | |||
139 | { Opt_mountport, "mountport=%u" }, | 139 | { Opt_mountport, "mountport=%u" }, |
140 | { Opt_mountprog, "mountprog=%u" }, | 140 | { Opt_mountprog, "mountprog=%u" }, |
141 | { Opt_mountvers, "mountvers=%u" }, | 141 | { Opt_mountvers, "mountvers=%u" }, |
142 | { Opt_nfsprog, "nfsprog=%u" }, | ||
143 | { Opt_nfsvers, "nfsvers=%u" }, | 142 | { Opt_nfsvers, "nfsvers=%u" }, |
144 | { Opt_nfsvers, "vers=%u" }, | 143 | { Opt_nfsvers, "vers=%u" }, |
145 | 144 | ||
@@ -801,13 +800,6 @@ static int nfs_parse_mount_options(char *raw, | |||
801 | return 0; | 800 | return 0; |
802 | mnt->mount_server.version = option; | 801 | mnt->mount_server.version = option; |
803 | break; | 802 | break; |
804 | case Opt_nfsprog: | ||
805 | if (match_int(args, &option)) | ||
806 | return 0; | ||
807 | if (option < 0) | ||
808 | return 0; | ||
809 | mnt->nfs_server.program = option; | ||
810 | break; | ||
811 | case Opt_nfsvers: | 803 | case Opt_nfsvers: |
812 | if (match_int(args, &option)) | 804 | if (match_int(args, &option)) |
813 | return 0; | 805 | return 0; |
@@ -1067,9 +1059,6 @@ static int nfs_try_mount(struct nfs_parsed_mount_data *args, | |||
1067 | * | 1059 | * |
1068 | * + breaking back: trying proto=udp after proto=tcp, v2 after v3, | 1060 | * + breaking back: trying proto=udp after proto=tcp, v2 after v3, |
1069 | * mountproto=tcp after mountproto=udp, and so on | 1061 | * mountproto=tcp after mountproto=udp, and so on |
1070 | * | ||
1071 | * XXX: as far as I can tell, changing the NFS program number is not | ||
1072 | * supported in the NFS client. | ||
1073 | */ | 1062 | */ |
1074 | static int nfs_validate_mount_data(void *options, | 1063 | static int nfs_validate_mount_data(void *options, |
1075 | struct nfs_parsed_mount_data *args, | 1064 | struct nfs_parsed_mount_data *args, |
@@ -1095,7 +1084,6 @@ static int nfs_validate_mount_data(void *options, | |||
1095 | args->mount_server.protocol = XPRT_TRANSPORT_UDP; | 1084 | args->mount_server.protocol = XPRT_TRANSPORT_UDP; |
1096 | args->mount_server.program = NFS_MNT_PROGRAM; | 1085 | args->mount_server.program = NFS_MNT_PROGRAM; |
1097 | args->nfs_server.protocol = XPRT_TRANSPORT_TCP; | 1086 | args->nfs_server.protocol = XPRT_TRANSPORT_TCP; |
1098 | args->nfs_server.program = NFS_PROGRAM; | ||
1099 | 1087 | ||
1100 | switch (data->version) { | 1088 | switch (data->version) { |
1101 | case 1: | 1089 | case 1: |