zephyr/subsys/settings
Marcin Niestroj 976520c77e settings: file: do not create file when loading
File backend can be read-only with the use of `settings_file_src()` API. It
makes no sense to create file when `settings_load()` is called and
registered file backend won't be used for saving files (because
`settings_file_dst()` was not used).

Do not create file during `settings_load()` if it does not exist yet. This
just requires to remove FS_O_CREATE flag in `fs_open()` invocation.

Open file with read-only access, which is now possible after removal of
`FS_O_CREATE` flag.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2022-12-05 14:59:59 +01:00
..
include/settings settings: file: change FS (or file system) wording to File 2022-11-24 09:36:31 +01:00
src settings: file: do not create file when loading 2022-12-05 14:59:59 +01:00
CMakeLists.txt
Kconfig settings: put all options under `if SETTINGS` 2022-12-05 11:00:57 +01:00