diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-05-05 01:15:31 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-05-05 01:15:31 +0000 |
commit | e19726b3e335c2ca6bb58e55af43f1ccb3ac3057 (patch) | |
tree | 607c241b48f5358ecd27017ce3b4605aef751b37 /nuttx/include | |
parent | b85797acfbfb1a29c84a0db6cfded6a6360d3f83 (diff) | |
download | px4-nuttx-e19726b3e335c2ca6bb58e55af43f1ccb3ac3057.tar.gz px4-nuttx-e19726b3e335c2ca6bb58e55af43f1ccb3ac3057.tar.bz2 px4-nuttx-e19726b3e335c2ca6bb58e55af43f1ccb3ac3057.zip |
Minor NXFFS fixes
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3563 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/nuttx/nxffs.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/nxffs.h b/nuttx/include/nuttx/nxffs.h index d601b4a41..4d1343676 100644 --- a/nuttx/include/nuttx/nxffs.h +++ b/nuttx/include/nuttx/nxffs.h @@ -59,14 +59,32 @@ # error "CONFIG_NXFFS_ERASEDSTATE must be either 0x00 or 0xff" #endif +/* Don't bother trying to pack things closer together than this. */ + #ifndef CONFIG_NXFFS_PACKTHRESHOLD # define CONFIG_NXFFS_PACKTHRESHOLD 32 #endif +/* This is how big an inode name is permitted to be. */ + #ifndef CONFIG_NXFFS_MAXNAMLEN # define CONFIG_NXFFS_MAXNAMLEN 255 #endif +/* Clean-up can either mean packing files together toward the end of the file + * or, if file are deleted at the end of the file, clean up can simply mean + * erasing the end of FLASH memory so that it can be re-used again. However, + * doing this can also harm the life of the FLASH part because it can mean + * that the tail end of the FLASH is re-used too often. + * + * This threshold determines if/when it is worth erased the tail end of FLASH + * and making it available for re-use (and possible over-wear). + */ + +#ifndef CONFIG_NXFFS_TAILTHRESHOLD +# define CONFIG_NXFFS_TAILTHRESHOLD (8*1024) +#endif + /* At present, only a single pre-allocated NXFFS volume is supported. This * is because here can be only a single NXFFS volume mounted at any time. * This has to do with the fact that we bind to an MTD driver (instead of a |