zephyr/samples/subsys
Laczen JMS 68ea30c123 fs/nvs: Improve init speed and remove fs->locked
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>
2019-02-21 09:32:52 -05:00
..
console cmake: increase minimal required version to 3.13.1 2019-01-03 11:51:29 -05:00
fs doc: fix misspellings in docs 2019-02-07 22:06:14 -05:00
ipc samples: subsys: ipm_mcux: Convert to use DT_ prefixed defines 2019-02-08 16:03:17 -06:00
logging tests: Dont run coverage for select test cases. 2019-01-16 06:12:33 -05:00
mgmt doc: changed structure and layout 2019-02-05 07:04:40 -05:00
nvs fs/nvs: Improve init speed and remove fs->locked 2019-02-21 09:32:52 -05:00
shell/shell_module shell: Deprecate macros for subcommands creation 2019-02-20 07:31:35 -05:00
usb sample/subsys/usb/dfu: correction to documentation 2019-02-20 19:43:43 -05:00
subsys.rst