-
Notifications
You must be signed in to change notification settings - Fork 824
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
Overlay FileSystem #3677
Overlay FileSystem #3677
Conversation
d5c164c
to
154a795
Compare
7eadc29
to
18ff9ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once the comments are addressed (except of the one suggesting a different design for OverlayFS) and the tests pass, I think we should be good to go.
Also, side comment: I think we should make WebC read only for now (basically, panic/fail on any write operation on it, and we will remove the memory filesystem on it ->
Line 24 in 444d596
pub memory: Arc<MemFileSystem>, |
If things fully work then I think we should be good to go! (note: we can do that as part of other PR if that's easier)
18ff9ff
to
04f3231
Compare
04f3231
to
6fb20e4
Compare
This adds a
wasmer_vfs::overlay_fs::OverlayFileSystem
which allows you to "overlay" multiplewasmer_vfs::FileSystem
implementations.As opposed to the
wasmer_vfs::union_fs::UnionFileSystem
, which allows you to mount disjointed filesystems, theOverlayFileSystem
has a single primary filesystem and zero or more secondary filesystems, where a items from a filesystem with higher precedence will shadow items from a lower precedence filesystem.We want this as part of #3650.