Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feature request: support a virtual filesystem that is both readable and writeable. #44

Open
HarikrishnanBalagopal opened this issue Jan 30, 2024 · 2 comments

Comments

@HarikrishnanBalagopal
Copy link

HarikrishnanBalagopal commented Jan 30, 2024

Filesystem: Mount a read-only filesystem, configure host filesystem preopen remappings or pass-through.

Similar to this use case https://github.com/bjorn3/browser_wasi_shim?tab=readme-ov-file#usage
The stdin, stdout, stderr are handled by the Xterm terminal library, while the files are stored as Uint8Array in a tree structure in-memory.

The virtual filesystem should allow both reads and write and be flexible enough to allow any backend (in-memory, Xterm, network requests, etc.)

@HarikrishnanBalagopal HarikrishnanBalagopal changed the title in-memory filesystem that is both readable and writeable. feature request: support in-memory filesystem that is both readable and writeable. Jan 30, 2024
@HarikrishnanBalagopal HarikrishnanBalagopal changed the title feature request: support in-memory filesystem that is both readable and writeable. feature request: support a virtual filesystem that is both readable and writeable. Jan 30, 2024
@guybedford
Copy link
Collaborator

Thanks for posting, yes we should extend the feature set here, this is already tracking in #29.

Does that cover your requirements? Contributions are very much welcome.

@HarikrishnanBalagopal
Copy link
Author

Thanks for posting, yes we should extend the feature set here, this is already tracking in #29.

Does that cover your requirements? Contributions are very much welcome.

Nice, but the other issue just gives a very short description. We can close this issue and track all the requirements in #29 if you want.

Not sure if I can contribute, I have more experience with Golang than Rust 😓 , and I am still trying to wrap my head around the WASI component model own, sub, eq, resource, etc. https://github.com/WebAssembly/component-model/blob/main/design/mvp/Explainer.md

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants