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

Refactor filesystem #225

Merged
merged 15 commits into from
Aug 7, 2021
Merged

Refactor filesystem #225

merged 15 commits into from
Aug 7, 2021

Conversation

vinc
Copy link
Owner

@vinc vinc commented Aug 2, 2021

The filesystem code was in one big file with tight coupling. This PR is splitting it into smaller files and refactoring everything to move toward multiple independent layers, with the VFS at the top, a block layer the middle, and physical devices at the bottom.

There is still a lot of work to be done but we can now support a filesystem on a disk or in memory. One issue is that the frame allocator is slow for a heap larger than a few megabytes, and another one is that neither the ram nor the disk is dynamically allocated using their full sizes. This will need to be addressed soon.

This PR also introduce some tests now that we can use a filesystem in memory. It was about time!

@vinc vinc marked this pull request as ready for review August 7, 2021 09:29
@vinc vinc merged commit d706e97 into master Aug 7, 2021
@vinc vinc deleted the feature/refactor-fs branch August 7, 2021 09:29
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.

1 participant