Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294477
b: refs/heads/master
c: 7ced286
h: refs/heads/master
i:
  294475: 6fe9103
v: v3
  • Loading branch information
Weston Andros Adamson authored and Trond Myklebust committed Feb 15, 2012
1 parent 9827c3e commit c8833e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 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: b6d1e83b4ea6cb369bdd490871f00651decdb509
refs/heads/master: 7ced286e0ade171af89d32c22b1590e1ca480542
14 changes: 13 additions & 1 deletion trunk/fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ enum {
Opt_cto, Opt_nocto,
Opt_ac, Opt_noac,
Opt_lock, Opt_nolock,
Opt_v2, Opt_v3, Opt_v4,
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 @@ -136,6 +136,8 @@ static const match_table_t nfs_mount_option_tokens = {
{ 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 @@ -1172,6 +1174,16 @@ static int nfs_parse_mount_options(char *raw,
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 c8833e2

Please sign in to comment.