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

Allow WasiRunner to mount FileSystem instances #4302

Merged
merged 7 commits into from
Jan 10, 2024

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented Nov 9, 2023

As part of wasmerio/wasmer-js#334 we need the ability to mount entire FileSystem instances at a particular point in the WASIX instance's filesystem.

I've added an adaptor so the existing map_directory() methods for mapping a directory on the host filesystem goes through this new mount() mechanism.

@Michael-F-Bryan Michael-F-Bryan force-pushed the wasi-runner-mount-fs-instances branch from 2bc0a1f to fc8c6a7 Compare November 21, 2023 14:18
@Michael-F-Bryan Michael-F-Bryan force-pushed the wasi-runner-mount-fs-instances branch from c1cdff0 to 29746d1 Compare December 14, 2023 16:59
@Michael-F-Bryan Michael-F-Bryan force-pushed the wasi-runner-mount-fs-instances branch 4 times, most recently from 2ee9b56 to d2ac6c2 Compare December 21, 2023 08:22
@Michael-F-Bryan Michael-F-Bryan force-pushed the wasi-runner-mount-fs-instances branch from d2ac6c2 to f9bf1c4 Compare January 5, 2024 06:00
@Michael-F-Bryan Michael-F-Bryan force-pushed the wasi-runner-mount-fs-instances branch from f9bf1c4 to d37aa0d Compare January 5, 2024 06:54
@Michael-F-Bryan
Copy link
Contributor Author

@syrusakbary or @theduke can you review this? It's the last thing Wasmer JS needs before we can make it use master directly.

lib/wasix/src/runners/wasi_common.rs Outdated Show resolved Hide resolved
lib/wasix/src/runners/wasi_common.rs Outdated Show resolved Hide resolved
@Michael-F-Bryan Michael-F-Bryan force-pushed the wasi-runner-mount-fs-instances branch from d37aa0d to c9eaebe Compare January 10, 2024 08:59
@Michael-F-Bryan Michael-F-Bryan merged commit 0cf0f5b into master Jan 10, 2024
52 checks passed
@Michael-F-Bryan Michael-F-Bryan deleted the wasi-runner-mount-fs-instances branch January 10, 2024 13:59
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.

2 participants