zephyr/subsys/fs
Yonas Alizadeh 440de0dde0 fs: nvs: fix invalid block compare when data CRC is enabled
When nvs_write is called, the nvs_flash_block_cmp is used to check if
the new data to be written matches the data already on flash. This check
always fail when CONFIG_NVS_DATA_CRC is enabled, caused by the
NVS_DATA_CRC_SIZE being added to the len parameter. The pointer to the
new data does not already have the CRC part added, while the data on
flash does, and the size to be compared includes CRC section.
By removing the addition of NVS_DATA_CRC_SIZE to the compare size, only
the data without CRC is compared, which will make the compare work in
both cases.

Signed-off-by: Yonas Alizadeh <yonas.alizadeh@alfalaval.com>
2025-05-26 09:19:54 +02:00
..
ext2
fcb
nvs fs: nvs: fix invalid block compare when data CRC is enabled 2025-05-26 09:19:54 +02:00
zms zms: optimize cache for settings subsystem 2025-05-15 17:53:26 +02:00
CMakeLists.txt native FUSE FS access: Support any libC and fix random crashes 2025-03-08 15:26:29 +01:00
fat_fs.c fs: enable fstab devicetree integration for fatfs 2025-03-15 13:07:40 +01:00
fs_impl.c
fs_impl.h
fs.c fs: update module logging registration 2025-03-27 03:50:22 +01:00
fuse_fs_access_bottom.c native FUSE FS access: Support any libC and fix random crashes 2025-03-08 15:26:29 +01:00
fuse_fs_access_bottom.h native FUSE FS access: Support any libC and fix random crashes 2025-03-08 15:26:29 +01:00
fuse_fs_access.c native FUSE FS access: Support any libC and fix random crashes 2025-03-08 15:26:29 +01:00
Kconfig native FUSE FS access: Support any libC and fix random crashes 2025-03-08 15:26:29 +01:00
Kconfig.fatfs fs: enable fstab devicetree integration for fatfs 2025-03-15 13:07:40 +01:00
Kconfig.littlefs fs: littlefs: define default disk version in Kconfig 2025-05-20 15:24:00 +02:00
littlefs_fs.c fs: littlefs: define default disk version in Kconfig 2025-05-20 15:24:00 +02:00
shell.c fs: shell: fix maybe-uninitialized warning 2025-04-14 11:49:28 +02:00