NFS4: Set parsed mount data version to 4
authorBryan Schumaker <bjschuma@netapp.com>
Tue, 5 Jun 2012 18:59:54 +0000 (14:59 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 5 Jun 2012 19:50:47 +0000 (15:50 -0400)
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>
fs/nfs/super.c

index ff656c022684e9e2b0d94587cf9d807d670bd715..bdd673141e9ea93ce05d248027a754a75fe547e1 100644 (file)
@@ -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))
This page took 0.036699 seconds and 5 git commands to generate.