68ea30c123
This patch removes the free space calculation from nvs initialization. The available space can be calculated if required using the routine nvs_calc_free_space. This patch also removes the locked state of nvs, it is not possible to get in a locked state. This patch adds an extra check on the sector_size configuration and only allows operation on nvs when nvs has been initialized. This patch also solves issue #13369, the usage of FLASH_ERASE_BLOCK_SIZE has been replaced with the flash page api. Changes: Removed locked state and free_space from the nvs structure. nvs_reinit(): has been replaced with by an internal only function _nvs_startup(). nvs_write(): removed the possibility to place the file system in a locked state, if to many gc operations are required it will return -ENOSPC. ssize_t nvs_calc_free_space(): introduced, calculates the free space that is available in the nvs file system. Removed define LOG_LEVEL. Rebased to current master. Signed-off-by: Laczen JMS <laczenjms@gmail.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
nvs.c | ||
nvs_priv.h |