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

WasmFS: OPFS AccessHandles backend #15950

Closed
tlively opened this issue Jan 11, 2022 · 4 comments
Closed

WasmFS: OPFS AccessHandles backend #15950

tlively opened this issue Jan 11, 2022 · 4 comments
Assignees
Labels

Comments

@tlively
Copy link
Member

tlively commented Jan 11, 2022

We should write a new WasmFS backend using OPFS AccessHandles to provide efficient access to the native file system.

Depends on #15946.

@tlively
Copy link
Member Author

tlively commented Jun 1, 2022

This was started in #16813. The backend creates an exclusive AccessHandle for each opened file, so each file can only be opened once at a time. Improving that is tracked in #17121.

We also need to make the error handling in the opfs backend more robust with tests for the different things that could go wrong.

@tlively
Copy link
Member Author

tlively commented Oct 4, 2022

The error handling issue has been fixed and the OPFS backend is generally usable now.

@tlively tlively closed this as completed Oct 4, 2022
Repository owner moved this from In Progress to Done in WasmFS Oct 4, 2022
@rulkens
Copy link

rulkens commented Oct 29, 2023

Is there any documentation on this? I've looked in the emscripten docs but I can't find any info about it (https://emscripten.org/docs/api_reference/Filesystem-API.html#file-system-api). I'd love to use it for my custom PNG encoder wasm implementation.

@hangxingliu
Copy link

@rulkens coincidence, i am also looking for it for a better data persistence process. I found that there is a good example c source code, which can be used as a documentation at https://github.com/emscripten-core/emscripten/blob/main/test/wasmfs/wasmfs_opfs.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

3 participants