Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

ocifs: read-write layers #231

Merged
merged 2 commits into from
Aug 28, 2023
Merged

ocifs: read-write layers #231

merged 2 commits into from
Aug 28, 2023

Conversation

achille-roussel
Copy link
Contributor

Following up on #229, this PR makes the OCI layered file system writable if the underlying layers can be written. This allows the application to mutate the content of file systems mounted at specific locations with sandbox.SubFS.

While technically, this enables the use cases we're trying to implement (read-only file system + writable mount points), I'm feeling increasingly uneasy about this being somewhat of a workaround for the lack of a more general-purpose copy-on-write mechanism; I'm hoping we'll find the time to get back to working on this at some point: this model only works if the mount points are made opaque (e.g. masking files from layers below) because otherwise the application may end up in very strange situations where it can create directory entries in the writable layer but cannot mutate some of the entries seen from the layers below etc... as long as we apply strong controls over how the file systems are constructed we shouldn't run into too many issues, but it still feels like living on borrowed time.

Signed-off-by: Achille Roussel <[email protected]>
Signed-off-by: Achille Roussel <[email protected]>
@achille-roussel achille-roussel merged commit ef8d066 into main Aug 28, 2023
5 checks passed
@achille-roussel achille-roussel deleted the ocifs-read-write branch August 28, 2023 22:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants