summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs_socket.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-12 00:11:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-12 00:11:24 +0000
commite88d1ff1f09ba0ea6999ab2e5e2d55dc88434646 (patch)
tree6f24b585409bf50441d746766fd87118a4f3b2d7 /nuttx/fs/nfs/nfs_socket.c
parent4ddf48475760e7d5b22e391573a940fd604847f8 (diff)
downloadpx4-nuttx-e88d1ff1f09ba0ea6999ab2e5e2d55dc88434646.tar.gz
px4-nuttx-e88d1ff1f09ba0ea6999ab2e5e2d55dc88434646.tar.bz2
px4-nuttx-e88d1ff1f09ba0ea6999ab2e5e2d55dc88434646.zip
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4724 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs_socket.c')
-rw-r--r--nuttx/fs/nfs/nfs_socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/fs/nfs/nfs_socket.c b/nuttx/fs/nfs/nfs_socket.c
index fc658a481..c1508171d 100644
--- a/nuttx/fs/nfs/nfs_socket.c
+++ b/nuttx/fs/nfs/nfs_socket.c
@@ -144,7 +144,7 @@ int nfs_connect(struct nfsmount *nmp)
//rpc->rc_flag |= RPCCLNT_REDIRECT; /* Make this a mount option. */
rpc->rc_authtype = RPCAUTH_NULL; /* for now */
- //rpc->rc_servername = nmp->nm_mountp->mnt_stat.f_mntfromname;
+ rpc->rc_path = nmp->nm_path;
rpc->rc_name = &nmp->nm_nam;
rpc->rc_sotype = nmp->nm_sotype;
@@ -191,7 +191,9 @@ tryagain:
memset(&reply, 0, sizeof(reply));
- if ((error = rpcclnt_request(clnt, procnum, &reply, datain)) != 0)
+ error = rpcclnt_request(clnt, procnum, nmp->nm_rpcclnt->rc_prog->prog_id,
+ nmp->nm_rpcclnt->rc_prog->prog_version, &reply, datain);
+ if (error != 0)
{
goto out;
}