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

feat: Moves the bulk of ZipOpenFS into a new MountFS #4818

Merged
merged 5 commits into from
Sep 6, 2022
Merged

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Sep 5, 2022

What's the problem this PR addresses?

The logic allowing to "mount" virtual entities on the disk isn't trivial (finding the mount point and branching the code, handling file descriptors, managing the cache, etc). We implemented it in ZipOpenFS, making it difficult to implement different mount logics without duplicating a lot of tedious work.

How did you fix it?

Most of the ZipOpenFS logic was moved to a new MountFS class. The options unique to zip (readOnlyArchive, libzip, etc) are handled in a subclass from MountFS, which tweaks the parameters before forwarding them.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis arcanis merged commit d0c83d4 into master Sep 6, 2022
@arcanis arcanis deleted the mael/mountfs branch September 6, 2022 08:49
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