2015-10-08 18:54:41 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config FS_TMPFS
|
|
|
|
bool "TMPFS file system"
|
|
|
|
default n
|
2015-10-09 23:17:32 +02:00
|
|
|
depends on !DISABLE_MOUNTPOINT
|
2015-10-08 18:54:41 +02:00
|
|
|
---help---
|
|
|
|
Enable TMPFS filesystem support
|
|
|
|
|
|
|
|
if FS_TMPFS
|
|
|
|
|
2015-10-10 00:57:48 +02:00
|
|
|
config FS_TMPFS_BLOCKSIZE
|
|
|
|
int "Reported block size"
|
|
|
|
default 512
|
|
|
|
---help---
|
|
|
|
Various queries expect the file system to report resources in units
|
|
|
|
of blocks. There are, of course, no blocks with the TMPFS. This
|
|
|
|
options is available to control how sizes are reported. For very
|
|
|
|
small TMPFS systems, you might want to set this to something smaller
|
2017-05-11 21:15:13 +02:00
|
|
|
the usual 512 bytes.
|
2015-10-10 00:57:48 +02:00
|
|
|
|
2015-10-08 18:54:41 +02:00
|
|
|
config FS_TMPFS_DIRECTORY_ALLOCGUARD
|
|
|
|
int "Directory object over-allocation"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
In order to avoid frequent reallocations, a little more memory than
|
|
|
|
needed is always allocated. This permits the directory to grow
|
|
|
|
without so many realloctions.
|
|
|
|
|
|
|
|
config FS_TMPFS_DIRECTORY_FREEGUARD
|
|
|
|
int "Directory under free"
|
|
|
|
default 128
|
|
|
|
---help---
|
|
|
|
In order to avoid frequent reallocations, a lot of free memory has
|
|
|
|
to be available before a directory entry shrinks (via reallocation)
|
|
|
|
little more memory than needed is always allocated. This permits
|
|
|
|
the directory to shrink without so many realloctions.
|
|
|
|
|
|
|
|
config FS_TMPFS_FILE_ALLOCGUARD
|
|
|
|
int "Directory object over-allocation"
|
|
|
|
default 512
|
|
|
|
---help---
|
|
|
|
In order to avoid frequent reallocations, a little more memory than
|
|
|
|
needed is always allocated. This permits the file to grow without
|
|
|
|
so many realloctions.
|
|
|
|
|
2015-10-10 00:57:48 +02:00
|
|
|
You will probably want to use smaller value than the default on tiny
|
|
|
|
TMFPS systems.
|
|
|
|
|
2015-10-08 18:54:41 +02:00
|
|
|
config FS_TMPFS_FILE_FREEGUARD
|
|
|
|
int "Directory under free"
|
|
|
|
default 1024
|
|
|
|
---help---
|
|
|
|
In order to avoid frequent reallocations, a lot of free memory has
|
|
|
|
to be available before a directory entry shrinks (via reallocation)
|
|
|
|
little more memory than needed is always allocated. This permits
|
|
|
|
the file to shrink without so many realloctions.
|
|
|
|
|
|
|
|
endif
|