zephyr/subsys/fs
Phil Hindman 09574e68eb fs: littlefs: Gracefully fail when static buffers are too small
The cache_size and lookahead_size are set at compile time using the
CONFIG_FS_LITTLEFS_CACHE_SIZE and CONFIG_FS_LITTLEFS_LOOKAHEAD_SIZE values
from Kconfig, or from the cache-size and lookahead-size properties in a
'zephyr,fstab,littlefs' compatible in the devicetree.  Those values are
also used to statically allocate buffers that are pointed at by the
read_buffer, prog_buffer, and lookahead_buffer members of the lfs_config
structure.

At runtime, when using a block device, the cache_size and lookahead_size
are updated to be multiples of the underlying block device's block_size,
which may make them bigger than the original size used to allocate the
static buffers. Log an error and fail the operation when this occurs.

Signed-off-by: Phil Hindman <phindman@xes-inc.com>
2024-10-25 22:45:55 +01:00
..
ext2 fs: ext2: add alignment for superblock 2024-09-30 17:10:56 +01:00
fcb fs: fcb: rename variables differently than struct tag 2024-07-11 16:14:55 +02:00
nvs fs: nvs: streamline `rc` return logic 2024-10-08 16:57:49 +02:00
zms fs: introduce ZMS a new Memory storage system 2024-10-24 16:57:12 +01:00
CMakeLists.txt fs: introduce ZMS a new Memory storage system 2024-10-24 16:57:12 +01:00
Kconfig fs: introduce ZMS a new Memory storage system 2024-10-24 16:57:12 +01:00
Kconfig.fatfs fs: fatfs: additional ELM FAT options 2024-10-11 13:20:08 -04:00
Kconfig.littlefs fs/littlefs: Use flash_area_flatten in lfs_api_erase 2024-06-04 08:00:46 +02:00
fat_fs.c style: subsys: comply with MISRA C:2012 Rule 15.6 2024-08-20 10:33:51 +02:00
fs.c fs: open: fix zfp flags not set when calling truncate 2024-06-18 14:35:03 -04:00
fs_impl.c
fs_impl.h
fuse_fs_access.c fs: fuse: ensure S_IFxxx macros are available 2024-08-11 10:32:20 +02:00
littlefs_fs.c fs: littlefs: Gracefully fail when static buffers are too small 2024-10-25 22:45:55 +01:00
shell.c fs: shell: Allow retries after a mount failure 2024-10-21 18:38:37 -05:00