esp-idf/components/nvs_flash/test_nvs_host
Ivan Grokhotkov 5a23ec4dc4 nvs: check that storage has at least one free page
This change adds a check for the free page count to nvs_flash_init.
Under normal operation, NVS keeps at least one free page available,
except for transient states such as freeing up new page. Due to external
factors (such as NVS partition size reduction) this free page could be
lost, making NVS operation impossible. Previously this would cause an
error when performing any nvs_set operation or opening a new namespace.
With this change, an error is returned from nvs_flash_init to indicate
that NVS partition is in such a state.
2017-03-14 22:03:39 +08:00
..
catch.hpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
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 esp_err: Use separate code path for ESP_ERROR_CHECK assertion 2017-03-03 15:33:23 +11: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 add unit tests to esp-idf 2016-11-22 14:45:50 +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: check that storage has at least one free page 2017-03-14 22:03:39 +08:00
test_spi_flash_emulation.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00