zephyr/subsys/fs/nvs
Andrzej Puzdrowski 54000fb886 fs/nvs: fix startup for 2-sectors configuration
This patch fixes following bug:

After first GC operation the 1st sector had become scratch
and the 2nd sector had became write sector. After that NVS
was initialize (via reboot) again - it recognized the 1st
sector as write sector and 2nd as undone GC destination sector,
therefore it cleared 2nd sector and  re-run GC, which implied data loss.

Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
2019-05-22 10:22:53 +02:00
..
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig subsys: nvs: move to new logger 2018-10-08 17:49:12 -04:00
nvs_priv.h subsys: nvs: increase NVS_BLOCK_SIZE 2018-11-06 17:09:03 -05:00
nvs.c fs/nvs: fix startup for 2-sectors configuration 2019-05-22 10:22:53 +02:00