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

implement symlinks for virtual-fs #4062

Draft
wants to merge 22 commits into
base: main
Choose a base branch
from
Draft

Conversation

ijsnow
Copy link

@ijsnow ijsnow commented Jul 8, 2023

Description

This is PR implements symlinks for the virtual-fs crate. It is a WIP and I'd appreciate any feedback/confirmation I'm heading in a direction that would get the implementation accepted! This would close #3232.

The main chunk of work I'd like reviewed is for mem_fs::FileSystem. I based the logic for the symlink functionality in the memory file system based on functionality I found playing around with std::os::unix::fs::symlink in this gist.

Remaining work outside of any feedback is to implement symlink for any of the file systems using webc::v1::Volume as I can't seem to find the repository containing the crate (is pirita private?).

@ptitSeb
Copy link
Contributor

ptitSeb commented Jul 19, 2023

pirita is pivate for now, but that will change (very) soon.
Why using a feature for the symlink?

The PR looks ok for now, appart for the symlink behind a feature. And I see some tests already, which is good.

@Michael-F-Bryan if you can also have a look.

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.

How can I got notified when method like link and symlink are called within WasiFs?
3 participants