OVMS3-idf/components/nvs_flash/test_nvs_host
Ivan Grokhotkov 203f75223e nvs: do eager cleanup of HashListBlocks
Previously when HashList was removing items, HashListBlocks were
removed lazily. This resulted in empty HashListBlocks dangling around
in full pages, even when all items have been erased. These blocks
would only be deleted when NVS was re-initialized
(nvs_flash_deinit/nvs_flash_init).

This change does eager cleanup instead, based on the code from
@negativekelvin offered in
https://github.com/espressif/esp-idf/issues/1642#issuecomment-367227994.

Closes https://github.com/espressif/esp-idf/issues/1642.
2019-02-28 20:38:31 +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_ERROR_CHECK converts error code to text 2018-05-31 12:53:37 +02:00
main.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00
Makefile nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
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: Support for blobs larger than half of SPI Flash sector size 2018-07-20 00:13:15 +05:30
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: do eager cleanup of HashListBlocks 2019-02-28 20:38:31 +08:00
test_spi_flash_emulation.cpp add unit tests to esp-idf 2016-11-22 14:45:50 +08:00