2012-04-06 23:49:35 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 22:08:57 +08:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 23:49:35 +08:00
|
|
|
#
|
2012-04-11 07:01:40 +08:00
|
|
|
|
|
|
|
comment "File system configuration"
|
2012-04-15 02:01:45 +08:00
|
|
|
|
2013-01-25 00:28:15 +08:00
|
|
|
config DISABLE_MOUNTPOINT
|
|
|
|
bool "Disable support for mount points"
|
|
|
|
default n
|
|
|
|
|
2014-07-30 02:50:08 +08:00
|
|
|
config FS_AUTOMOUNTER
|
|
|
|
bool "Auto-mounter"
|
|
|
|
default n
|
|
|
|
depends on !DISABLE_MOUNTPOINT
|
2017-08-27 01:54:03 +08:00
|
|
|
select SCHED_LPWORK
|
2014-07-30 02:50:08 +08: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-12 04:14:08 +08:00
|
|
|
depends on FS_AUTOMOUNTER && DEBUG_FEATURES
|
2014-07-30 02:50:08 +08: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.
|
|
|
|
|
2014-02-21 08:14:02 +08:00
|
|
|
config DISABLE_PSEUDOFS_OPERATIONS
|
2014-02-21 08:49:45 +08:00
|
|
|
bool "Disable pseudo-filesystem operations"
|
|
|
|
default y if DEFAULT_SMALL
|
|
|
|
default n if !DEFAULT_SMALL
|
2014-02-21 08:14:02 +08: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.
|
|
|
|
|
2017-02-03 00:39:41 +08:00
|
|
|
config PSEUDOFS_SOFTLINKS
|
|
|
|
bool "Pseudo-filesystem soft links"
|
2017-02-03 05:24:39 +08:00
|
|
|
default n
|
2017-02-06 04:57:38 +08:00
|
|
|
depends on !DISABLE_PSEUDOFS_OPERATIONS
|
2017-02-03 00:39:41 +08:00
|
|
|
---help---
|
2018-07-09 08:24:45 +08:00
|
|
|
Enable support for soft links in the pseudo file system. Soft
|
2017-02-03 00:39:41 +08: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.
|
|
|
|
|
2020-07-28 19:08:48 +08:00
|
|
|
config EVENT_FD
|
|
|
|
bool "EventFD"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Create a file descriptor for event notification
|
|
|
|
|
|
|
|
if EVENT_FD
|
|
|
|
|
|
|
|
config EVENT_FD_VFS_PATH
|
|
|
|
string "Path to eventfd storage"
|
|
|
|
default "/var/event"
|
|
|
|
---help---
|
|
|
|
The path to where eventfd will exist in the VFS namespace.
|
|
|
|
|
|
|
|
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
|
|
|
|
---help---
|
|
|
|
Maximum number of threads that can be waiting on poll()
|
|
|
|
|
|
|
|
endif # EVENT_FD
|
|
|
|
|
2014-10-06 05:33:31 +08:00
|
|
|
source fs/aio/Kconfig
|
2014-09-29 02:19:01 +08:00
|
|
|
source fs/semaphore/Kconfig
|
2014-09-30 06:46:31 +08:00
|
|
|
source fs/mqueue/Kconfig
|
|
|
|
source fs/shm/Kconfig
|
2012-04-11 07:01:40 +08:00
|
|
|
source fs/mmap/Kconfig
|
2018-08-28 21:30:21 +08:00
|
|
|
source fs/partition/Kconfig
|
2013-01-16 23:41:27 +08:00
|
|
|
source fs/fat/Kconfig
|
2012-04-11 07:01:40 +08:00
|
|
|
source fs/nfs/Kconfig
|
|
|
|
source fs/nxffs/Kconfig
|
2012-08-03 01:09:25 +08:00
|
|
|
source fs/romfs/Kconfig
|
2018-03-19 21:08:40 +08:00
|
|
|
source fs/cromfs/Kconfig
|
2015-10-10 01:02:59 +08:00
|
|
|
source fs/tmpfs/Kconfig
|
2013-05-01 10:13:30 +08:00
|
|
|
source fs/smartfs/Kconfig
|
2013-01-16 23:41:27 +08:00
|
|
|
source fs/binfs/Kconfig
|
2013-11-14 05:59:14 +08: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 08:05:09 +08:00
|
|
|
source fs/spiffs/Kconfig
|
2019-01-10 04:26:51 +08:00
|
|
|
source fs/littlefs/Kconfig
|
2015-06-06 03:18:06 +08:00
|
|
|
source fs/unionfs/Kconfig
|
2017-10-31 08:04:28 +08:00
|
|
|
source fs/userfs/Kconfig
|
2015-11-25 22:26:26 +08:00
|
|
|
source fs/hostfs/Kconfig
|