Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

settings: let settings_load fail on the first csi_load() failure #83281

Conversation

maximevince
Copy link
Contributor

@maximevince maximevince commented Dec 20, 2024

settings: let settings_load() fail on the first csi_load() failure and return the result.

In its current state, it will just happily return 0 in all cases. (except when a h_commit() calls fails).
The way I understand it, this is not according to the documentation (https://docs.zephyrproject.org/latest/services/settings/index.html#loading-data-from-persisted-storage).

If you guys agree with the issue (raised here: #83279),
then this is my proposal to fix it.

@zephyrbot zephyrbot added the area: Settings Settings subsystem label Dec 20, 2024
settings: let settings_load fail on the first csi_load()
failure and return the result

Signed-off-by: Maxime Vincent <[email protected]>
@maximevince maximevince force-pushed the maximevince/settings-load-should-fail branch from 53da043 to 2389dd9 Compare December 20, 2024 14:46
@maximevince
Copy link
Contributor Author

Let's not do this, then!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Settings Settings subsystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants