2012-04-06 17:49:35 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:08:57 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 17:49:35 +02:00
|
|
|
#
|
2012-04-11 01:01:40 +02:00
|
|
|
|
|
|
|
comment "File system configuration"
|
2012-04-14 20:01:45 +02:00
|
|
|
|
2013-01-24 17:28:15 +01:00
|
|
|
config DISABLE_MOUNTPOINT
|
|
|
|
bool "Disable support for mount points"
|
|
|
|
default n
|
|
|
|
|
2014-07-29 20:50:08 +02:00
|
|
|
config FS_AUTOMOUNTER
|
|
|
|
bool "Auto-mounter"
|
|
|
|
default n
|
|
|
|
depends on !DISABLE_MOUNTPOINT
|
2017-08-26 19:54:03 +02:00
|
|
|
select SCHED_LPWORK
|
2014-07-29 20:50:08 +02:00
|
|
|
---help---
|
|
|
|
The automounter provides an OS-internal mechanism for automatically
|
|
|
|
mounting and unmounting removable media as the media is inserted and
|
|
|
|
removed. See include/nuttx/fs/automout.h for interfacing details.
|
|
|
|
|
|
|
|
config FS_AUTOMOUNTER_DEBUG
|
|
|
|
bool "Auto-mounter debug"
|
|
|
|
default n
|
2016-06-11 22:14:08 +02:00
|
|
|
depends on FS_AUTOMOUNTER && DEBUG_FEATURES
|
2014-07-29 20:50:08 +02:00
|
|
|
---help---
|
|
|
|
Normally, the auto-mounter will generate debug output when sub-system
|
|
|
|
level file system debug is enabled. This option will select debug
|
|
|
|
output from the logic related to the auto-mount feature even when file
|
|
|
|
system debug is not enable. This is useful primarily for in vivo
|
|
|
|
unit testing of the auto-mount feature.
|
|
|
|
|
2020-08-17 04:58:27 +02:00
|
|
|
config FS_NEPOLL_DESCRIPTORS
|
|
|
|
int "Maximum number of default epoll descriptors for epoll_create1(2)"
|
|
|
|
default 8
|
|
|
|
---help---
|
|
|
|
The maximum number of default epoll descriptors for epoll_create1(2)
|
|
|
|
|
2014-02-21 01:14:02 +01:00
|
|
|
config DISABLE_PSEUDOFS_OPERATIONS
|
2014-02-21 01:49:45 +01:00
|
|
|
bool "Disable pseudo-filesystem operations"
|
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2014-02-21 01:14:02 +01:00
|
|
|
---help---
|
|
|
|
Disable certain operations on pseudo-file systems include mkdir,
|
|
|
|
rmdir, unlink, and rename. These are necessary for the logical
|
|
|
|
completeness of the illusion created by the pseudo-filesystem.
|
|
|
|
However, in practical embedded system, they are seldom needed and
|
|
|
|
you can save a little FLASH space by disabling the capability.
|
|
|
|
|
2021-07-09 07:43:26 +02:00
|
|
|
config PSEUDOFS_ATTRIBUTES
|
|
|
|
bool "Pseudo-filesystem attributes"
|
|
|
|
default n
|
|
|
|
depends on !DISABLE_PSEUDOFS_OPERATIONS
|
|
|
|
---help---
|
|
|
|
Enable support for attributes(e.g. mode, uid, gid and time)
|
|
|
|
in the pseudo file system.
|
|
|
|
|
2017-02-02 17:39:41 +01:00
|
|
|
config PSEUDOFS_SOFTLINKS
|
|
|
|
bool "Pseudo-filesystem soft links"
|
2017-02-02 22:24:39 +01:00
|
|
|
default n
|
2017-02-05 21:57:38 +01:00
|
|
|
depends on !DISABLE_PSEUDOFS_OPERATIONS
|
2017-02-02 17:39:41 +01:00
|
|
|
---help---
|
2018-07-09 02:24:45 +02:00
|
|
|
Enable support for soft links in the pseudo file system. Soft
|
2017-02-02 17:39:41 +01:00
|
|
|
links are not supported within mounted volumes by any NuttX file
|
|
|
|
system. However, if this option is selected, then soft links
|
|
|
|
may be add in the pseudo file system. This might be useful, for
|
|
|
|
to link a directory in the pseudo-file system, such as /bin, to
|
|
|
|
to a directory in a mounted volume, say /mnt/sdcard/bin.
|
|
|
|
|
2021-07-10 17:52:17 +02:00
|
|
|
config SENDFILE_BUFSIZE
|
|
|
|
int "sendfile() buffer size"
|
|
|
|
default 512
|
|
|
|
---help---
|
|
|
|
Size of the I/O buffer to allocate in sendfile(). Default: 512b
|
|
|
|
|
2020-07-28 13:08:48 +02:00
|
|
|
config EVENT_FD
|
|
|
|
bool "EventFD"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Create a file descriptor for event notification
|
|
|
|
|
|
|
|
if EVENT_FD
|
|
|
|
|
|
|
|
config EVENT_FD_VFS_PATH
|
2021-02-05 07:48:06 +01:00
|
|
|
string "Path to eventfd storage"
|
|
|
|
default "/var/event"
|
|
|
|
---help---
|
|
|
|
The path to where eventfd will exist in the VFS namespace.
|
2020-07-28 13:08:48 +02:00
|
|
|
|
|
|
|
config EVENT_FD_POLL
|
|
|
|
bool "EventFD poll support"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Poll support for file descriptor based events
|
|
|
|
|
|
|
|
config EVENT_FD_NPOLLWAITERS
|
|
|
|
int "Number of eventFD poll waiters"
|
|
|
|
default 2
|
2021-05-08 15:14:31 +02:00
|
|
|
depends on EVENT_FD_POLL
|
2020-07-28 13:08:48 +02:00
|
|
|
---help---
|
|
|
|
Maximum number of threads that can be waiting on poll()
|
|
|
|
|
|
|
|
endif # EVENT_FD
|
|
|
|
|
2014-10-05 23:33:31 +02:00
|
|
|
source fs/aio/Kconfig
|
2014-09-28 20:19:01 +02:00
|
|
|
source fs/semaphore/Kconfig
|
2014-09-30 00:46:31 +02:00
|
|
|
source fs/mqueue/Kconfig
|
|
|
|
source fs/shm/Kconfig
|
2012-04-11 01:01:40 +02:00
|
|
|
source fs/mmap/Kconfig
|
2018-08-28 15:30:21 +02:00
|
|
|
source fs/partition/Kconfig
|
2013-01-16 16:41:27 +01:00
|
|
|
source fs/fat/Kconfig
|
2012-04-11 01:01:40 +02:00
|
|
|
source fs/nfs/Kconfig
|
|
|
|
source fs/nxffs/Kconfig
|
2012-08-02 19:09:25 +02:00
|
|
|
source fs/romfs/Kconfig
|
2018-03-19 14:08:40 +01:00
|
|
|
source fs/cromfs/Kconfig
|
2015-10-09 19:02:59 +02:00
|
|
|
source fs/tmpfs/Kconfig
|
2013-05-01 04:13:30 +02:00
|
|
|
source fs/smartfs/Kconfig
|
2013-01-16 16:41:27 +01:00
|
|
|
source fs/binfs/Kconfig
|
2013-11-13 22:59:14 +01:00
|
|
|
source fs/procfs/Kconfig
|
This commit brings in an inital port of the SPIFFS flash file system into NuttX. The file system is still untested at this point (and subject to some additional review). It is, however, marked EXPERIMENTAL should this should not cause a problem for anyone.
Squashed commit of the following:
fs/spiffs: Fix last compilation issue. Now compiles without error. It is still not quite ready for testing as there is additional code review that must be be performed. It is now marked as EXPERIMENTAL so that it can be brought onto the master branch with little risk.
fs/spiffs: Remove some dead code.
fs/spiffs: Weak start of analysis of spiffs_nucleus.c. Renamed to spiffs_core.c
fs/spiffs: Rename spiffs_nucleus.c to spiffs_core.c
fs/spiffs: Remove spiffs_config.h. All configuration settings are now available in the SPIFFS Kconfig options.
fs/spiffs: Finished review, update, and repartitioning of spiffs_check.c. Added spiffs_check.h.
fs/spiffs: Finished review, update, and repartitioning of spiffs_cache.c. Added spiffs_cache.h.
fs/spiffs: Clean up some defines used in debug output statements.
fs/spiffs: Finished review, update, and repartitioning of spiffs_gc.c. Added spiffs_gc.h.
fs/spiffs: Now that VFS interface is completed, I have begun the long march of repartitioning the remaining functionality, reviewing logic, identifying dead code, and cleaning up loose ends.
fs/spiffs: Initial integration of MTD interface, replacing the SPIFFS native flash interface. Lots of open issues such as the use of pages vs. blocks vs. erase blocks and units of addresses, offsets, and lengths that are passed in function calls. Remove SPIFFS_USE_MAGIC support. That option (which default to OFF anyway), wrote a magic value at the beginning of every sector and support verifiable identification of the file system. It was not being and used and removing it makes life simpler.
fs/spiffs: Remove semaphore lock on the file object structure. Ultimately, the file access must modify the volume and access the volume structue which also has a exclusivity lock. So use of the volume lock alone should be sufficient.
Integrated the SPIFFS rename logic into the NuttX VFS. Removed non-standard application calls or convert them to IOCTL commands. These were converted to IOCTL commands: (1) integrity check, (2) garbage collection, and (3) format flash. These were removed: (1) Integrity check callback. These provided a lot of good information about the state of the file system, but such callbacks are not compatible with a POSIX compliant file system. (2) Index maps. The index maps were a performance improvement feature. The user could provide the memory and request that a region of a a file use that memory for improved lookup performance when accessing parts of the file. The fallback is the less performance lookup by traversing the FLASH memory. (3) Removed the quick garbage collection interface (the code is still used internally). Only the full garbage collection is available to the user application via IOCTL.
configs/sim/spiffs: A simulator configuration to use for testing SPIFFS.
fs/spiffs: Integrate SPIFFS logic into NuttX VFS bind() and unbind() methods.
fs/mount/fs_mount.c: Add SPIFFS to the list of drivers that require MTD vs block drivers.
fs/spiffs: Trivial changes, mostly from analysis of how to integrate the rename() VFS method.
fs/spiffs: Connect NuttX VFS unlink method to the SPIFFS_remove() function. Lots of name-changing.
fs/spiffs: Remove non-standard errno support. Remove bogus SPIFFS_LOCK() and SPIFFS_UNLOCK() macros.
fs/spiffs: Add NuttX VFS implementation for statfs() method. Clean up some of the accumulating compilation problems.
fs/spiffs: Add stat(), truncate() methods. Dummy out unsupport mkdir() and rmdir() methods.
fs/spiffs: Replace some of the custom error numbers with standard error numbers.
fs/spiffs: Hooks read(), write(), fstat(), ioctl(), opendir(), closedir(), rewindif(), and readdir() into the NuttX VFS.
fs/spiffs: Beginning the organization to work with the NuttX VFS. Lots of things are get broken!
fs/spiffs: Add spiffs.c which will be the interface between SPIFFS and NuttX. No very close at present, however.
fs/spiffs: Clean up some compile problems introduced by coding standard changes.
fs/spiffs: A little closer to NuttX coding standard.
fs/spiffs: Ran tools/indent.sh against all files. Closer to NuttX coding standard, but needs a lot more effort to be fully compliant.
fs/spiffs: This commit brings in version 0.3.7 of Peter Anderson's SPIFFS. The initial commit includes the core FS files (with some definitions destributed to their correct header files) and hooks into the build system.
2018-09-25 02:05:09 +02:00
|
|
|
source fs/spiffs/Kconfig
|
2019-01-09 21:26:51 +01:00
|
|
|
source fs/littlefs/Kconfig
|
2015-06-05 21:18:06 +02:00
|
|
|
source fs/unionfs/Kconfig
|
2017-10-31 01:04:28 +01:00
|
|
|
source fs/userfs/Kconfig
|
2015-11-25 15:26:26 +01:00
|
|
|
source fs/hostfs/Kconfig
|