mbed-os/features/storage
Seppo Takalo 93d7422f75 TDBStore: Do no garbage_collect() on init()
Previous logic caused garbage collection to kick in, if the init() was
called on empty storage. This has effect of erasing areas twice, if both
areas were empty.

Re-write logic so that we erase areas only on garbage_collect() or reset().
The init() logic already chooses the active area, so no need to touch,
until keys are modified.

Removed also the is_erase_unit_erased() as this is working only on
FLASH devices, and TDBStore should be refactored to work on all storages.
2019-12-03 15:20:10 +02:00
..
TESTS Remove flaky error_inject_test 2019-12-03 14:38:40 +02:00
blockdevice IOTSTOR-953: Fix address calculations from SlicingBlockDevice 2019-11-04 16:13:32 +02:00
filesystem LittleFS test: silence sign mismatch warning 2019-12-02 14:45:37 +02:00
kvstore TDBStore: Do no garbage_collect() on init() 2019-12-03 15:20:10 +02:00
nvstore Incorporated the review comments 2019-11-08 09:50:09 -08:00
system_storage Add storage related files to baseline unittest. 2019-11-04 16:12:36 +02:00