zephyr/subsys/fs
Riadh Ghaddab 2eba2e9c9c zms: add more robustiness in extreme cases
When power cuts during a GC operation, the sector is erased again in the
next reboot cycle and the cycle_cnt of the empty ATE is incremented.
If the same power cut happens 255 times in a row, the empty ATE cycle_cnt
will become equal to the close ATE which causes a memory corruption.
Fix this by checking the close ATE cycle_cnt before incrementing the
empty ATE cycle_cnt.

Fixes: #84874
Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2025-04-16 20:36:49 +02:00
..
ext2
fcb
nvs
zms zms: add more robustiness in extreme cases 2025-04-16 20:36:49 +02:00
CMakeLists.txt
fat_fs.c
fs_impl.c
fs_impl.h
fs.c
fuse_fs_access_bottom.c
fuse_fs_access_bottom.h
fuse_fs_access.c
Kconfig
Kconfig.fatfs
Kconfig.littlefs
littlefs_fs.c
shell.c fs: shell: fix maybe-uninitialized warning 2025-04-14 11:49:28 +02:00