]> granicus.if.org Git - esp-idf/commit
nvs: Fix recovery after power-off during erase operation
authorSagar Bijwe <sagar@espressif.com>
Fri, 13 Apr 2018 06:59:06 +0000 (12:29 +0530)
committerSagar Bijwe <sagar@espressif.com>
Tue, 17 Apr 2018 06:54:21 +0000 (12:24 +0530)
commit9a3c4b71340671f0215250c2e46be75456414da7
tree0ad533b2f3a0353c2332cf0c04eb3a592aea0edb
parent16ad81c6369c2f7d0e06f1ef4c07fa661e4d295e
nvs: Fix recovery after power-off during erase operation

Current code for recovery after power-off do not clean-up partially
erased items for FULL pages. If the erasure was part of modification
operation, this gets luckily cleaned-up because of duplicate detection
logic. For erase-only operation, the problem still exists. This patch
adds the recovery for FULL pages also.

Closes TW<20284>
components/nvs_flash/src/nvs_page.cpp
components/nvs_flash/test_nvs_host/test_nvs.cpp