Open Michael-F-Bryan opened 1 year ago
Thanks for creating this issue with a way to reproduce it, super clear to start the discussion later in time!
Following https://github.com/wasmerio/wasmer/pull/3737 the test now do
thread 'mem_fs::filesystem::test_filesystem::mount_to_overlapping_directories' panicked at 'called `Result::unwrap()` on an `Err` value: AlreadyExists', lib/vfs/src/mem_fs/filesystem.rs:1719:14
Wich does not really add support, but at least this is coherent behavior.
Some testing for ArcDirectory
support should be written.
Describe the bug
As part of #3677, I wanted to mount different folders from the host system to overlapping folders in the guest (e.g.
/tmp/first/
goes to/mapped/
and/home/michael/
goes to/mapped/nested/
). It doesn't look like this use case is supported by eitherUnionFileSystem
ormem_fs::FileSystem
at the moment.Steps to reproduce
Here are some tests we can add to the
wasmer-vfs
crate.Expected behavior
The above test should pass.
Actual behavior
The
mem_fs
test fails because we don't know how to handleSome(Node::ArcDirectory(..))
in thismatch
statement:https://github.com/wasmerio/wasmer/blob/d1d1a477c801424e74c218ac311095cbfaec22bd/lib/vfs/src/mem_fs/filesystem.rs#L758-L772