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

Add OPFS/navigator.storage Support for Improved File System Integration #1053

Closed
dkranke opened this issue May 27, 2024 · 1 comment
Closed

Comments

@dkranke
Copy link

dkranke commented May 27, 2024

Description:
Implement support for the Origin Private File System (OPFS)/ navigator.storage to enhance file system integration in v86. This feature will allow direct file storage and retrieval in the browser, eliminating the need for custom 9p implementations for file transfer between the VM and the host.

Justification:
Integrating OPFS will simplify user interactions with the VM by leveraging native browser capabilities for file management, thus improving ease of use and performance.

Implementation:

  • Evaluate direct OPFS integration versus a 9p protocol implementation using OPFS.
  • Develop the necessary API hooks to support OPFS operations within the v86 environment.
  • Ensure compatibility with existing file system operations and provide fallback options for browsers without OPFS support.

Benefits:

  • Streamlined file transfer processes.
  • Reduced complexity in VM file management.
  • Enhanced performance and user experience.
@copy
Copy link
Owner

copy commented May 28, 2024

From the linked page:

Browsers persist the contents of the OPFS to disk somewhere, but you cannot expect to find the created files matched one-to-one. The OPFS is not intended to be visible to the user.

So this is not really useful for sharing files with the host.

Let's close this as a duplicate of #396

@copy copy closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2024
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

No branches or pull requests

2 participants