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

Redesign file system code #278

Merged
merged 9 commits into from
Apr 21, 2024
Merged

Redesign file system code #278

merged 9 commits into from
Apr 21, 2024

Conversation

PatrickKa
Copy link
Contributor

@PatrickKa PatrickKa commented Apr 21, 2024

Description

  • Separate functions specific to the storage device from the planned littlefs wrapper
  • Implement a flash and RAM storage device for littlefs
  • Add tests for the RAM storage device
  • Add fs::ErrorCode and fs::Result
  • Add fs::Mount() to show how I imagine the littlefs wrapper
  • Move old file system code in FileSystem.[chi]pp into namespace sts1cobcsw::fs::deprecated

Fixes part of #273
Fixes part of #186
Fixes part of #209 (LfsRam.cpp is enough to run the whole file system code on Linux, but it does not allow changing the functionality at run time)

@codecov-commenter
Copy link

codecov-commenter commented Apr 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.28%. Comparing base (ffdc461) to head (aabc47b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #278      +/-   ##
==========================================
+ Coverage   88.36%   89.28%   +0.91%     
==========================================
  Files          20       22       +2     
  Lines         576      625      +49     
==========================================
+ Hits          509      558      +49     
  Misses         67       67              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@PatrickKa PatrickKa changed the title WIP: Rework file system WIP: Redesign file system code Apr 21, 2024
@PatrickKa PatrickKa changed the title WIP: Redesign file system code Redesign file system code Apr 21, 2024
@PatrickKa PatrickKa merged commit b159fe5 into master Apr 21, 2024
6 checks passed
@PatrickKa PatrickKa deleted the file-system branch April 21, 2024 19:48
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