zephyr/subsys
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
..
bindesc bindesc: Add support for reading binary descriptors 2024-10-11 13:20:49 -04:00
bluetooth Bluetooth: Audio: Remove BT_AUDIO_BROADCAST_CODE_SIZE 2024-10-25 22:43:40 +01:00
canbus
console
dap
debug
demand_paging
dfu susbys/dfu/img_util: refined ERASE PROGRESSIVELY implementation 2024-10-18 08:19:28 -04:00
disk
dsp
emul
fb
fs fs: littlefs: Gracefully fail when static buffers are too small 2024-10-25 22:45:55 +01:00
input
ipc ipc: icmsg & icbmsg: Fix alloc_tx_buffer() doxygen description 2024-10-24 13:15:35 +01:00
jwt
llext
logging logging: backend: websocket: Avoid uninit variable warning 2024-10-25 12:50:54 -05:00
lorawan lorawan: unify logging level 2024-10-16 09:59:01 +02:00
mem_mgmt
mgmt mgmt: mcumgr: transport: Add LoRaWAN MCUmgr SMP transport 2024-10-25 14:00:48 +02:00
modbus
modem
net net: socket: service: mark as unstable 2024-10-25 18:50:07 +01:00
pm pm: policy: allow using latency API in standalone mode 2024-10-24 17:50:44 +02:00
portability
profiling
random random: `sys_csrand_get` backend for `TEST_RANDOM_GENERATOR` 2024-10-16 10:00:47 +02:00
retention
rtio
sd
secure_storage
sensing
settings settings: introduce priority for commit 2024-10-24 22:04:07 +01:00
shell shell: backend: websocket: Fix socket service creation 2024-10-25 12:50:54 -05:00
sip_svc
stats
storage storage/stream_flash: Make context const where not modified 2024-10-25 22:45:33 +01:00
task_wdt
testsuite
timing
tracing tracing: add named event trace 2024-10-17 10:46:52 -04:00
usb usb: device_next: cdc_acm: Prevent polling for buffer in TX 2024-10-22 22:46:59 -04:00
zbus
CMakeLists.txt
Kconfig