diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-28 23:40:20 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-28 23:40:20 +0000 |
commit | a6eddbb85537ebee6860b0c38ab48be615b297f6 (patch) | |
tree | b3ff63b6f24e1e4769154242c5f3002acc3929d2 /nuttx/fs/nfs/rpc_clnt.c | |
parent | da8ffa947e5747e3365a26d0829135a04ecbdf94 (diff) | |
download | px4-nuttx-a6eddbb85537ebee6860b0c38ab48be615b297f6.tar.gz px4-nuttx-a6eddbb85537ebee6860b0c38ab48be615b297f6.tar.bz2 px4-nuttx-a6eddbb85537ebee6860b0c38ab48be615b297f6.zip |
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4781 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/rpc_clnt.c')
-rw-r--r-- | nuttx/fs/nfs/rpc_clnt.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/nuttx/fs/nfs/rpc_clnt.c b/nuttx/fs/nfs/rpc_clnt.c index dfb25823a..e39d1c161 100644 --- a/nuttx/fs/nfs/rpc_clnt.c +++ b/nuttx/fs/nfs/rpc_clnt.c @@ -95,8 +95,6 @@ #include "xdr_subs.h" #include "nfs_proto.h" #include "rpc.h" -#include "rpc_clnt_private.h" -#include "rpc_v2.h" /**************************************************************************** * Pre-processor Definitions @@ -1158,7 +1156,7 @@ void rpcclnt_init(void) //rpcclnt_timer(NULL, callmgs); - nvdbg("rpc initialized"); + nvdbg("rpc initialized\n"); return; } @@ -1305,7 +1303,7 @@ int rpcclnt_connect(struct rpcclnt *rpc) memset(&mountd, 0, sizeof(mountd)); memset(&mdata, 0, sizeof(mdata)); - strncpy(mountd.rpath, rpc->rc_path, 92); + strncpy(mountd.rpath, rpc->rc_path, 90); mountd.len = txdr_unsigned(sizeof(mountd.rpath)); error = rpcclnt_request(rpc, RPCMNT_MOUNT, RPCPROG_MNT, RPCMNT_VER1, @@ -1321,13 +1319,7 @@ int rpcclnt_connect(struct rpcclnt *rpc) goto bad; } - nvdbg("fh %d\n", mdata.mount.fhandle); - nvdbg("fh rpc antes %d\n", rpc->rc_fh); - //bcopy(&mdata.mount.fhandle, rpc->rc_fh, NFS_MAXFHSIZE); - //bcopy(mdata.mount.fhandle, rpc->rc_fh, NFS_MAXFHSIZE); rpc->rc_fh = mdata.mount.fhandle; - //ndvbg("fh_mounted %d\n", mdata.mount.fhandle); - ndbg("fh rpc despues %d\n", rpc->rc_fh); /* NFS port in the socket*/ @@ -1423,8 +1415,6 @@ int rpcclnt_umount(struct rpcclnt *rpc) * Get port number for MOUNTD. */ - nvdbg("Entry: fh %d\n", rpc->rc_fh); - memset(&sdata, 0, sizeof(sdata)); memset(&rdata, 0, sizeof(rdata)); sa->sin_port = htons(PMAPPORT); @@ -1474,7 +1464,7 @@ int rpcclnt_umount(struct rpcclnt *rpc) if ((fxdr_unsigned(uint32_t, mdata.mount.status)) != 0) { - ndbg("error mounting with the server %d\n", error); + ndbg("error unmounting with the server %d\n", error); goto bad; } |