diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-05-12 00:11:24 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-05-12 00:11:24 +0000 |
commit | 95c738489def9e9bcd52e72e42aea08e55714a76 (patch) | |
tree | 6f24b585409bf50441d746766fd87118a4f3b2d7 /nuttx/fs/nfs/nfs_socket.c | |
parent | 4bc440c90c652c159a538b604537d3d9780e0d93 (diff) | |
download | px4-firmware-95c738489def9e9bcd52e72e42aea08e55714a76.tar.gz px4-firmware-95c738489def9e9bcd52e72e42aea08e55714a76.tar.bz2 px4-firmware-95c738489def9e9bcd52e72e42aea08e55714a76.zip |
NFS update
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4724 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/fs/nfs/nfs_socket.c')
-rw-r--r-- | nuttx/fs/nfs/nfs_socket.c | 6 |
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; } |