From cdbc82c04c609695764e116c593c390c46f37dd8 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 13 Jun 2012 15:00:34 +0000 Subject: Change NFS buffering git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4837 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/fs/nfs/nfs_mount.h | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'nuttx/fs/nfs/nfs_mount.h') 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 + +#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 -- cgit v1.2.3