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

Sync child process filesystem with parent process using PROXYFS #1063

Closed
adamziel opened this issue Feb 27, 2024 · 1 comment
Closed

Sync child process filesystem with parent process using PROXYFS #1063

adamziel opened this issue Feb 27, 2024 · 1 comment

Comments

@adamziel
Copy link
Collaborator

adamziel commented Feb 27, 2024

Related to:

Right now, both PRs use a full filesystem sync + sync-on-write mechanics to keep the MEMFS in sync between two separate PHP runtimes.

However, Emscripten supports PROXYFS:

This allows a module to mount another module’s file system. This is useful when separate modules need to share a file system without manually syncing file contents. For example:

// Module 2 can use the path "/fs1" to access and modify Module 1's filesystem
module2.FS.mkdir("/fs1");
module2.FS.mount(module2.PROXYFS, {
    root: "/",
    fs: module1.FS
}, "/fs1");

Let's see if this would solve the problem without any copying semantics.

@adamziel
Copy link
Collaborator Author

Done in #1069

@adamziel adamziel added this to the PHP Feature Parity milestone Feb 29, 2024
adamziel added a commit to WordPress/playground-tools that referenced this issue Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant