esp-idf/components/nvs_flash/test_nvs_host
Sagar Bijwe 7ae1df1c5e nvs: Fix recovery from power-off while page is being freed
Currently when page is being freed, items are individually moved from
FREEING page to ACTIVE page and erased. If power-off happens during the
process, the remaining entries are moved to ACTIVE page during recovery.
The problem with this approach is there may not be enough space on
ACTIVE page for all items if an item was partially written before
power-off and erased during recovery. This change moves all the items
from FREEING to ACTIVE page and then erased the FREEING page, If
power-off happens during the process, then ACTIVE page is erased and the
process is restarted.
2018-05-02 12:18:02 +05:30
..
crc.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
crc.h add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
esp_error_check_stub.cpp esp_err: Use separate code path for ESP_ERROR_CHECK assertion 2017-03-03 15:33:23 +11:00
main.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
Makefile nvs: run all test by default, exclude long tests by tag 2018-04-19 15:08:08 +08:00
sdkconfig.h add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
spi_flash_emulation.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
spi_flash_emulation.h nvs_flash: emulator: fix issues in load function, add save function 2017-09-19 10:39:44 +08:00
test_compressed_enum_table.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
test_intrusive_list.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
test_nvs.cpp nvs: Fix recovery from power-off while page is being freed 2018-05-02 12:18:02 +05:30
test_spi_flash_emulation.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00