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

Storage; Defragment kve storage when starting up by default #1364

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

ToveRumar
Copy link
Contributor

The kve will be defragmented before running the kve sanity check. Defragmenting before checking will make sure that the kve is sane after defragmentation and if not the kve will be reformatted.

This can be turned off in the Kconfig, so that users that do not want this to possibly change their startup time (if eeprom is severely fragmented) can go back to only defragmenting once kve is full

The kve will be defragmented before running the kve sanity check.
Defragmenting before checking will make sure that the kve is sane after defragmentation
and if not the kve will be reformatted.

This can be turned of in the Kconfig, so that users that do not want this to possibly
change their startup time (if eeprom is severely fragmented) can go back to only defragmenting
once kve is full
@ToveRumar ToveRumar force-pushed the ToveRumar/defrag_kve_on_startup branch from ab01963 to 9faaa4d Compare April 11, 2024 08:37
@ToveRumar
Copy link
Contributor Author

What do you think of the placement of the config item?
I placed it in Parameter Subsystem, since that was what i think it is most related to.
I gladly take input on this

@ataffanel
Copy link
Member

Looks good, merging, thanks!

@ataffanel ataffanel merged commit 9fe3099 into master Apr 15, 2024
24 checks passed
@ataffanel ataffanel deleted the ToveRumar/defrag_kve_on_startup branch April 15, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants