diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-06-05 14:59:54 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-06-05 15:50:47 -0400 |
commit | cdf66442fab82916fe38f928b4f91815195a294c (patch) | |
tree | b16861d2c27cdae18abdb8eac110b14eedac0bbb /fs/nfs | |
parent | bda197f5d71d56b95a84c0ccbcb8ce2691106cca (diff) |
NFS4: Set parsed mount data version to 4
This patch only affects mounting through "-t nfs4" since it doesn't set
up an nfs version to use in the mount data. The nfs client was trying
to mount using NFS v0, causing either a BUG() or a protocol not
supported message.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index ff656c022684..bdd673141e9e 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -2637,6 +2637,8 @@ static int nfs4_validate_mount_data(void *options, | |||
2637 | if (data == NULL) | 2637 | if (data == NULL) |
2638 | goto out_no_data; | 2638 | goto out_no_data; |
2639 | 2639 | ||
2640 | args->version = 4; | ||
2641 | |||
2640 | switch (data->version) { | 2642 | switch (data->version) { |
2641 | case 1: | 2643 | case 1: |
2642 | if (data->host_addrlen > sizeof(args->nfs_server.address)) | 2644 | if (data->host_addrlen > sizeof(args->nfs_server.address)) |