summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs_mount.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-13 15:00:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-13 15:00:34 +0000
commitcdbc82c04c609695764e116c593c390c46f37dd8 (patch)
treef26e2709ae0e71c1a23d50004b93861261d24d82 /nuttx/fs/nfs/nfs_mount.h
parent0923700ca3eaf369ee13d2c186f32c879cd1773b (diff)
downloadpx4-nuttx-cdbc82c04c609695764e116c593c390c46f37dd8.tar.gz
px4-nuttx-cdbc82c04c609695764e116c593c390c46f37dd8.tar.bz2
px4-nuttx-cdbc82c04c609695764e116c593c390c46f37dd8.zip
Change NFS buffering
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4837 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs_mount.h')
-rw-r--r--nuttx/fs/nfs/nfs_mount.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/nuttx/fs/nfs/nfs_mount.h b/nuttx/fs/nfs/nfs_mount.h
index c89e435a0..66343f90e 100644
--- a/nuttx/fs/nfs/nfs_mount.h
+++ b/nuttx/fs/nfs/nfs_mount.h
@@ -48,8 +48,9 @@
* Included Files
****************************************************************************/
-#include "nfs_proto.h"
#include <sys/socket.h>
+
+#include "rpc.h"
/****************************************************************************
* Pre-processor Definitions
@@ -84,6 +85,27 @@ struct nfsmount
uint16_t nm_wsize; /* Max size of write RPC */
uint16_t nm_readdirsize; /* Size of a readdir RPC */
uint8_t nm_verf[NFSX_V3WRITEVERF]; /* V3 write verifier */
+
+ /* Set aside memory on the stack to hold the largest call message. NOTE
+ * that for the case of the write call message, the reply message is in
+ * this union.
+ */
+
+ union
+ {
+ struct rpc_call_pmap pmap;
+ struct rpc_call_mount mountd;
+ struct rpc_call_create create;
+ struct rpc_call_lookup lookup;
+ struct rpc_call_read read;
+ struct rpc_call_remove removef;
+ struct rpc_call_rename renamef;
+ struct rpc_call_mkdir mkdir;
+ struct rpc_call_rmdir rmdir;
+ struct rpc_call_readdir readdir;
+ struct rpc_call_fs fs;
+ struct rpc_reply_write write;
+ } nm_smallbuffer;
};
#endif