8000 flush flash filesystem once a second by dhalbert · Pull Request #1672 · adafruit/circuitpython · GitHub
[go: up one dir, main page]

Skip to content

flush flash filesystem once a second #1672

New issue

Have a question about this project? Sign up for a free G 8000 itHub 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

Merged
merged 2 commits into from
Mar 26, 2019

Conversation

dhalbert
Copy link
Collaborator

This PR adds timing code to flush the flash filesystem once a second (if needed). The interval can be varied by a compile constant.

I think this would solve any remaining file-flushing issues. But there may be other issues causing a hard crash that will corrupt the filesystem if they occur during a write, and this won't fix those.

I have done limited testing. I saw one safe-mode reboot on PyPortal that may have been unrelated to the filesystem.

Tagging @makermelissa and @uhrheber on this.

Copy link
Member
@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should an underlying flush reset the counter? This approach is probably simpler.

@dhalbert dhalbert added this to the 4.0.0 - Bluetooth milestone Mar 20, 2019
@dhalbert
Copy link
Collaborator Author

Should an underlying flush reset the counter? This approach is probably simpler.

That's a good idea. I'll add that.

Copy link
Member
@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me.

@tannewt tannewt merged commit 2c93ce5 into adafruit:master Mar 26, 2019
@dhalbert dhalbert deleted the regular-fs-flush branch May 28, 2019 13:26
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
0