nuttx/fs
alexcekay 82fb723bde fs/littlefs: add block_size_factor mount option
When a board switches storage technology but wants to mount a littlefs
filesystem onto this storage it is desired to still use the same firmware.

This almost works out of the box in NuttX with the exception of setting the
correct block size, which may be different depending on the used storage.
An incorrect block size may lead to suboptimal performance or worse.

To avoid writing a firmware variant that only differs by
CONFIG_FS_LITTLEFS_BLOCK_SIZE_FACTOR this adds the option to pass the
intended block size at the mount call. To still enable the usage of the existing
options this adds a parser for comma-separated mount options, allowing multiple
options to be passed simultaneously.

Example: "autoformat,block_size_factor=4",
         "autoformat,block_size_factor=1"

This is backwards compatible: single options passed without commas continue to
work as before.

Signed-off-by: alexcekay <alexander@auterion.com>
2026-06-16 01:45:31 +08:00
..
aio include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
binfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
cromfs style: fix checkpatch issues after debug.h move 2026-04-07 07:50:06 -03:00
driver style: fix checkpatch issues after debug.h move 2026-04-07 07:50:06 -03:00
event fs/event/open: fix the inode information update outside of lock 2026-01-28 10:03:06 +08:00
fat !nuttx: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-19 16:21:28 +08:00
hostfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
inode fs/vfs: enforce pseudoFS permissions on mutation operations 2026-06-09 01:40:17 +08:00
littlefs fs/littlefs: add block_size_factor mount option 2026-06-16 01:45:31 +08:00
mmap include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mnemofs fs/mnemofs: Add mnemofs version 1 support. 2026-05-19 10:29:11 +08:00
mount include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
mqueue include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
nfs !nuttx: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-19 16:21:28 +08:00
nxffs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
partition include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
procfs !nuttx: drop redundant casts on tv_sec/tv_nsec and fix printf formats 2026-05-19 16:21:28 +08:00
romfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
rpmsgfs fs: rpmsgfs_client: add init message to unlock semaphore 2026-04-09 14:07:06 +08:00
semaphore fs/semaphore/open: fix the inode information update outside of lock 2026-01-28 10:03:06 +08:00
shm fs/inode: use file_allocate,file_dup to avoid racecondition to allocate fd 2026-01-09 17:11:25 +08:00
smartfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
socket include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
spiffs !compiler: drop CONFIG_HAVE_LONG_LONG and require long long support 2026-05-19 16:21:28 +08:00
tmpfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
unionfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
userfs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
v9fs include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
vfs fs/vfs: inherit ownership in pseudofile_create 2026-06-11 12:22:16 -03:00
zipfs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
fs_heap.c mm/mm_heap: use struct mm_heap_config_s to init the memory heap 2026-01-19 14:18:27 +08:00
fs_heap.h fs_heap:add fs_heap_mallinfo_task 2025-01-15 17:12:50 +08:00
fs_initialize.c fs: Move inotify.c from fs/notify/ to fs/vfs/ 2025-06-23 18:17:10 -03:00
Kconfig fs/Kconfig: add CONFIG_FS_PERMISSION option 2026-05-14 09:35:36 -03:00
Makefile Makefile: Remove make depend files by make distclean 2026-02-16 16:27:57 +01:00