summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-14 21:54:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-14 21:54:50 +0000
commit6d538ea469affc6b33254109c3c2b65c24c14e5d (patch)
tree674689e2c7da31b70ca838eeceed0ec4996276d2 /nuttx/fs/nfs/nfs.h
parent8f09b6e49a22230c26f0af2f7b20a0bf10ca8e9b (diff)
downloadpx4-nuttx-6d538ea469affc6b33254109c3c2b65c24c14e5d.tar.gz
px4-nuttx-6d538ea469affc6b33254109c3c2b65c24c14e5d.tar.bz2
px4-nuttx-6d538ea469affc6b33254109c3c2b65c24c14e5d.zip
Add NFS rewinddir support; fixe some NFS warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4844 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs.h')
-rw-r--r--nuttx/fs/nfs/nfs.h35
1 files changed, 14 insertions, 21 deletions
diff --git a/nuttx/fs/nfs/nfs.h b/nuttx/fs/nfs/nfs.h
index b35ef2c8d..dfff4a96d 100644
--- a/nuttx/fs/nfs/nfs.h
+++ b/nuttx/fs/nfs/nfs.h
@@ -47,39 +47,32 @@
/****************************************************************************
* Included Files
****************************************************************************/
-
+
#include "nfs_mount.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
-#if MSEC_PER_TICK <= 5
-# define NFS_TICKINTVL 5 /* Desired time for a tick (msec) */
-# define NFS_TICKS (CLOCKS_PER_SEC * NFS_TICKINTVL + 500) / 1000
-# define NFS_HZ (CLOCKS_PER_SEC / NFS_TICKS) /* Ticks/sec */
-#else
-# define NFS_TICKINTVL MSEC_PER_TICK /* Smallest that we can get */
-# define NFS_TICKS 1 /* Number of system ticks */
-# define NFS_HZ CLOCKS_PER_SEC /* Ticks/sec */
-#endif
-
-#define NFS_TIMEO (1 * NFS_HZ) /* Default timeout = 1 second */
-#define NFS_MINTIMEO (1 * NFS_HZ) /* Min timeout to use */
-#define NFS_MAXTIMEO (60 * NFS_HZ) /* Max timeout to backoff to */
-#define NFS_TIMEOUTMUL 2 /* Timeout/Delay multiplier */
-#define NFS_MAXREXMIT 100 /* Stop counting after this many */
-#define NFS_RETRANS 10 /* Num of retrans for soft mounts */
-#define NFS_WSIZE 8192 /* Def. write data size <= 8192 */
-#define NFS_RSIZE 8192 /* Def. read data size <= 8192 */
-#define NFS_READDIRSIZE 8192 /* Def. readdir size */
+#define NFS_TICKINTVL MSEC_PER_TICK /* Smallest that we can get */
+#define NFS_TICKS 1 /* Number of system ticks */
+#define NFS_HZ CLOCKS_PER_SEC /* Ticks/sec */
+#define NFS_TIMEO (1 * NFS_HZ) /* Default timeout = 1 second */
+#define NFS_MINTIMEO (1 * NFS_HZ) /* Min timeout to use */
+#define NFS_MAXTIMEO (60 * NFS_HZ) /* Max timeout to backoff to */
+#define NFS_TIMEOUTMUL 2 /* Timeout/Delay multiplier */
+#define NFS_MAXREXMIT 100 /* Stop counting after this many */
+#define NFS_RETRANS 10 /* Num of retrans for soft mounts */
+#define NFS_WSIZE 8192 /* Def. write data size <= 8192 */
+#define NFS_RSIZE 8192 /* Def. read data size <= 8192 */
+#define NFS_READDIRSIZE 8192 /* Def. readdir size */
#define NFS_NPROCS 23
/* Ideally, NFS_DIRBLKSIZ should be bigger, but I've seen servers with
* broken NFS/ethernet drivers that won't work with anything bigger (Linux..)
*/
-#define NFS_DIRBLKSIZ 1024 /* Must be a multiple of DIRBLKSIZ */
+#define NFS_DIRBLKSIZ 1024 /* Must be a multiple of DIRBLKSIZ */
/* Increment NFS statistics */