09574e68eb
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> |
||
---|---|---|
.. | ||
bindesc | ||
bluetooth | ||
canbus | ||
console | ||
dap | ||
debug | ||
demand_paging | ||
dfu | ||
disk | ||
dsp | ||
emul | ||
fb | ||
fs | ||
input | ||
ipc | ||
jwt | ||
llext | ||
logging | ||
lorawan | ||
mem_mgmt | ||
mgmt | ||
modbus | ||
modem | ||
net | ||
pm | ||
portability | ||
profiling | ||
random | ||
retention | ||
rtio | ||
sd | ||
secure_storage | ||
sensing | ||
settings | ||
shell | ||
sip_svc | ||
stats | ||
storage | ||
task_wdt | ||
testsuite | ||
timing | ||
tracing | ||
usb | ||
zbus | ||
CMakeLists.txt | ||
Kconfig |