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

9P host and guest support #39

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

9P host and guest support #39

wants to merge 7 commits into from

Conversation

djdv
Copy link
Owner

@djdv djdv commented Sep 13, 2023

Closes: #13
Initial draft for 9P host and guest implementations.
Seems to work for read-only stuff. Still need to do tests with writable systems since some required operations are probably missing implementations at the moment.

(I had this working a few months ago but forgot to publish the draft. Oops.)

Example server/host invocation:
fs mount 9p ipfs $multiaddr
would host the IPFS API on $multiaddr which a client could then attach to.

Example guest/client invocation:
fs mount fuse 9p -9p-server $multiaddr $mountpoint
would attach to $multiaddr and mount it (via FUSE) at $mountpoint

The invocation names and flags may change. Suggestions welcomed.
I'm not sure if 9p-server, 9p-client would be better than keeping them both as just 9p.
We only support 9P2000.L at the moment, but this may change in the far future. If/when it does we'd probably support a -protocl-version flag to select specific ones, or they could be broken out into a unique command namespace.
E.g. fs mount 9p2000l ipfs ... but this may be too verbose and not sensible to implement compared to a singular 9p with flags.

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.

mount: support 9P2000.L as a client and server
1 participant