forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
b76edc1
commit 54000fb
Showing
1 changed file
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters