mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 04:21:35 +08:00
NFS update
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4808 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -124,13 +124,13 @@ int nfs_connect(struct nfsmount *nmp)
|
||||
rpc = (struct rpcclnt *)kzalloc(sizeof(struct rpcclnt));
|
||||
if (!rpc)
|
||||
{
|
||||
ndbg("Failed to allocate rpc structure\n");
|
||||
fdbg("Failed to allocate rpc structure\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
rpc->rc_prog = &nfs3_program;
|
||||
|
||||
nvdbg("nfs connect!\n");
|
||||
fvdbg("nfs connect!\n");
|
||||
|
||||
/* translate nfsmnt flags -> rpcclnt flags */
|
||||
|
||||
@@ -224,12 +224,12 @@ tryagain:
|
||||
|
||||
if (error == ESTALE)
|
||||
{
|
||||
ndbg("%s: ESTALE on mount from server \n",
|
||||
fdbg("%s: ESTALE on mount from server \n",
|
||||
nmp->nm_rpcclnt->rc_prog->prog_name);
|
||||
}
|
||||
else
|
||||
{
|
||||
ndbg("%s: unknown error %d from server \n",
|
||||
fdbg("%s: unknown error %d from server \n",
|
||||
nmp->nm_rpcclnt->rc_prog->prog_name, error);
|
||||
}
|
||||
|
||||
@@ -251,4 +251,4 @@ int nfs_nmcancelreqs(struct nfsmount *nmp)
|
||||
{
|
||||
return 0; //rpcclnt_cancelreqs(nmp->nm_rpcclnt);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user