esp-idf/components/nvs_flash/src
Jakob Hasse fe7ebf75a0 NVS Flash: prevent erasing initialized partition
Closes https://github.com/espressif/esp-idf/issues/4755
Closes https://github.com/espressif/esp-idf/issues/2777
Closes FCS-533

* nvs_flash_erase_partition() checks whether
  the parition in question is initialized
  already and will return an error if so
* reflect changes in the documentation

* nvs host unit tests now clean up after each
  test case

nvs_flash: fixed deinit other partition's handles

* When deinitializing or erasing a partition,
  nvs used to close all handles instead of only
  the current partition's handles.
  This is fixed now
* Added a unit test for that case
2021-01-07 11:32:29 +08:00
..
compressed_enum_table.hpp components/nvs: make some methods const 2016-08-23 12:08:00 +08:00
intrusive_list.h nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
nvs_api.cpp NVS Flash: prevent erasing initialized partition 2021-01-07 11:32:29 +08:00
nvs_cxx_api.cpp NVS: expose C++ API 2020-01-09 18:29:23 +08:00
nvs_encr.cpp nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
nvs_encr.hpp nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
nvs_handle_locked.cpp NVS: expose C++ API 2020-01-09 18:29:23 +08:00
nvs_handle_locked.hpp NVS: expose C++ API 2020-01-09 18:29:23 +08:00
nvs_handle_simple.cpp NVS Flash: prevent erasing initialized partition 2021-01-07 11:32:29 +08:00
nvs_handle_simple.hpp NVS Flash: prevent erasing initialized partition 2021-01-07 11:32:29 +08:00
nvs_item_hash_list.cpp nvs: do eager cleanup of HashListBlocks 2019-02-26 01:58:20 +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_ops.cpp nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
nvs_ops.hpp nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
nvs_page.cpp NVS: BUGFIX non-matching type iterator works 2019-12-18 09:06:45 +08:00
nvs_page.hpp nvs: Check if an item is modified before writing out an identical copy 2019-04-30 11:39:58 -05:00
nvs_pagemanager.cpp nvs-flash: Support for blobs larger than half of SPI Flash sector size 2018-07-20 00:13:15 +05:30
nvs_pagemanager.hpp nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
nvs_partition_manager.cpp NVS: expose C++ API 2020-01-09 18:29:23 +08:00
nvs_partition_manager.hpp NVS: expose C++ API 2020-01-09 18:29:23 +08: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: bugfix - iterator skipping version 1 blobs 2020-04-01 11:16:28 +08:00
nvs_storage.hpp NVS: partition name is copied now 2020-01-02 09:18:24 +08:00
nvs_test_api.h nvs_flash: Add support for nvs encryption 2018-09-24 11:25:21 +05:30
nvs_types.cpp separate rom from esp32 component to esp_rom 2019-03-21 18:51:45 +08:00
nvs_types.hpp NVS: bugfix - iterator skipping version 1 blobs 2020-04-01 11:16:28 +08:00
nvs.hpp Initial public version 2016-08-17 23:08:22 +08:00