A little bit of file system configuration logic

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4586 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-04-10 23:01:40 +00:00
parent 09eb157d83
commit f5c6b8fe47
6 changed files with 124 additions and 0 deletions
+52
View File
@@ -2,3 +2,55 @@
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
menu "NXFFS file system configuration"
comment "NXFFS file system configuration"
config FS_NXFFS
bool "NXFFS file system"
default n
---help---
Enable NuttX FLASH file system (NXFF) support.
config NXFFS_ERASEDSTATE
bool "FLASH erased state"
default n
depends on FS_NXFFS
---help---
The erased state of FLASH.
This must have one of the values of 0xff or 0x00.
Default: 0xff.
config NXFFS_PACKTHRESHOLD
bool "Re-packing threshold"
default n
depends on FS_NXFFS
---help---
When packing flash file data,
don't both with file chunks smaller than this number of data bytes.
Default: 32.
config NXFFS_MAXNAMLEN
bool "Maximum file name length"
default n
depends on FS_NXFFS
---help---
The maximum size of an NXFFS file name.
Default: 255.
config NXFFS_TAILTHRESHOLD
bool "Tail threshold"
default n
depends on FS_NXFFS
---help---
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).
Default: 8192.
endmenu