Skip to content

Commit

Permalink
NFS4: Set parsed mount data version to 4
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bryan Schumaker authored and Trond Myklebust committed Jun 5, 2012
1 parent bda197f commit cdf6644
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/nfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -2637,6 +2637,8 @@ static int nfs4_validate_mount_data(void *options,
if (data == NULL)
goto out_no_data;

args->version = 4;

switch (data->version) {
case 1:
if (data->host_addrlen > sizeof(args->nfs_server.address))
Expand Down

0 comments on commit cdf6644

Please sign in to comment.