summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/rpc.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-06 21:51:03 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-06 21:51:03 +0000
commitc3b4e1492850517906a96c57fefff332614aad4d (patch)
tree478dc6f3a755c7a69ecbaefac4311d32243a9d9b /nuttx/fs/nfs/rpc.h
parent92fb15bdfedc185a9749f8cfae846ded9a729da5 (diff)
downloadpx4-nuttx-c3b4e1492850517906a96c57fefff332614aad4d.tar.gz
px4-nuttx-c3b4e1492850517906a96c57fefff332614aad4d.tar.bz2
px4-nuttx-c3b4e1492850517906a96c57fefff332614aad4d.zip
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4808 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/rpc.h')
-rw-r--r--nuttx/fs/nfs/rpc.h35
1 files changed, 10 insertions, 25 deletions
diff --git a/nuttx/fs/nfs/rpc.h b/nuttx/fs/nfs/rpc.h
index 9c85777fa..d073cb160 100644
--- a/nuttx/fs/nfs/rpc.h
+++ b/nuttx/fs/nfs/rpc.h
@@ -378,32 +378,10 @@ struct rpc_call_fs
struct rpc_reply_header
{
uint32_t rp_xid; /* request transaction id */
- int32_t rp_direction; /* call direction (1) */
+ uint32_t rp_direction; /* call direction (1) */
uint32_t type;
struct rpc_auth_info rpc_verfi;
uint32_t status;
-//enum msg_type rp_direction; /* call direction (1) */
-//enum reply_stat type;
-//enum accept_stat status;
-/*
- struct
- {
- uint32_t type;
- uint32_t status;
-*/
- /* used only when reply == RPC_MSGDENIED and status == RPC_AUTHERR */
-
- //uint32_t autherr;
-
- /* rpc mismatch info if reply == RPC_MSGDENIED and status == RPC_MISMATCH */
-/*
- struct
- {
- uint32_t low;
- uint32_t high;
- } mismatch_info;
- } stat;
-*/
};
struct rpc_reply_pmap
@@ -478,6 +456,13 @@ struct rpc_reply_fsstat
struct nfs_statfs fsstat;
};
+struct rpc_reply_getattr
+{
+ struct rpc_reply_header rh;
+ uint32_t status;
+ struct nfs_fattr attr;
+};
+
/* RPC Client connection context. One allocated on every NFS mount.
* Holds RPC specific information for mount.
*/
@@ -532,7 +517,7 @@ struct rpcclnt
/* currently can be RPCAUTH_NULL, RPCAUTH_KERBV4, RPCAUTH_UNIX */
/* should be kept in XDR form */
- // int rc_authtype; /* Authenticator type */
+// int rc_authtype; /* Authenticator type */
#ifdef CONFIG_NFS_UNIX_AUTH
/* RPCAUTH_UNIX*/
@@ -542,7 +527,7 @@ struct rpcclnt
struct rpc_program *rc_prog;
- //char *rc_servername;
+//char *rc_servername;
int rc_proctlen; /* if == 0 then rc_proct == NULL */
int *rc_proct;