Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294506
b: refs/heads/master
c: 3862279
h: refs/heads/master
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Mar 2, 2012
1 parent 94ab68f commit 73c0e4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7bbceb6f2bdda67054bc66035a9543623e539126
refs/heads/master: 3862279a5fcf44d0c68fa54a507a5bcd2ab4f0b7
31 changes: 3 additions & 28 deletions trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ enum {
Opt_cto, Opt_nocto,
Opt_ac, Opt_noac,
Opt_lock, Opt_nolock,
Opt_v2, Opt_v3, Opt_v4, Opt_v4_0, Opt_v4_1,
Opt_udp, Opt_tcp, Opt_rdma,
Opt_acl, Opt_noacl,
Opt_rdirplus, Opt_nordirplus,
Expand Down Expand Up @@ -133,11 +132,6 @@ static const match_table_t nfs_mount_option_tokens = {
{ Opt_noac, "noac" },
{ Opt_lock, "lock" },
{ Opt_nolock, "nolock" },
{ Opt_v2, "v2" },
{ Opt_v3, "v3" },
{ Opt_v4, "v4" },
{ Opt_v4_0, "v4.0" },
{ Opt_v4_1, "v4.1" },
{ Opt_udp, "udp" },
{ Opt_tcp, "tcp" },
{ Opt_rdma, "rdma" },
Expand Down Expand Up @@ -183,6 +177,9 @@ static const match_table_t nfs_mount_option_tokens = {
{ Opt_fscache_uniq, "fsc=%s" },
{ Opt_local_lock, "local_lock=%s" },

/* The following needs to be listed after all other options */
{ Opt_nfsvers, "v%s" },

{ Opt_err, NULL }
};

Expand Down Expand Up @@ -1228,28 +1225,6 @@ static int nfs_parse_mount_options(char *raw,
mnt->flags |= (NFS_MOUNT_LOCAL_FLOCK |
NFS_MOUNT_LOCAL_FCNTL);
break;
case Opt_v2:
mnt->flags &= ~NFS_MOUNT_VER3;
mnt->version = 2;
break;
case Opt_v3:
mnt->flags |= NFS_MOUNT_VER3;
mnt->version = 3;
break;
case Opt_v4:
mnt->flags &= ~NFS_MOUNT_VER3;
mnt->version = 4;
break;
case Opt_v4_0:
mnt->flags &= ~NFS_MOUNT_VER3;
mnt->version = 4;
mnt->minorversion = 0;
break;
case Opt_v4_1:
mnt->flags &= ~NFS_MOUNT_VER3;
mnt->version = 4;
mnt->minorversion = 1;
break;
case Opt_udp:
mnt->flags &= ~NFS_MOUNT_TCP;
mnt->nfs_server.protocol = XPRT_TRANSPORT_UDP;
Expand Down

0 comments on commit 73c0e4b

Please sign in to comment.