OVMS3-idf/components/nvs_flash/src
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
..
compressed_enum_table.hpp components/nvs: make some methods const 2016-08-23 12:08:00 +08:00
intrusive_list.h Initial public version 2016-08-17 23:08:22 +08:00
nvs.hpp Initial public version 2016-08-17 23:08:22 +08:00
nvs_api.cpp nvs: make nvs_flash_deinit useable from unit tests 2018-04-16 14:06:52 +08:00
nvs_item_hash_list.cpp nvs: don’t expect items with bad CRC to be in cache 2018-04-16 09:36:17 +00:00
nvs_item_hash_list.hpp nvs: don’t expect items with bad CRC to be in cache 2018-04-16 09:36:17 +00:00
nvs_page.cpp nvs: Fix recovery from power-off while page is being freed 2018-05-02 12:18:02 +05:30
nvs_page.hpp nvs: Fix recovery from power-off while page is being freed 2018-05-02 12:18:02 +05:30
nvs_pagemanager.cpp nvs: Fix recovery from power-off while page is being freed 2018-05-02 12:18:02 +05:30
nvs_pagemanager.hpp nvs:Add functions for calculating used/free entries 2018-04-13 10:34:13 +05:00
nvs_platform.hpp nvs: allow nvs_flash_init to be called more than once 2016-11-18 20:11:16 +08:00
nvs_storage.cpp nvs:Add functions for calculating used/free entries 2018-04-13 10:34:13 +05:00
nvs_storage.hpp nvs:Add functions for calculating used/free entries 2018-04-13 10:34:13 +05:00
nvs_test_api.h nvs: Support for handling multiple NVS partitions 2017-08-22 13:48:14 +05:30
nvs_types.cpp components/nvs: maintain item hash list at page level 2016-09-21 18:02:52 +08:00
nvs_types.hpp components/nvs: fix formatting 2016-09-22 21:05:47 +08:00