Discussion:
[9fans] mount p9 sources in p9p
(too old to reply)
Rudolf Sykora
2013-04-20 08:49:02 UTC
Permalink
Hello,

can I do something like '9fs sources' but in p9p so that I could read
p9 (not port) sources in linux?
I'd guess it is possible, but I don't know how...

Thanks!
Ruda
Skip Tavakkolian
2013-04-20 10:47:28 UTC
Permalink
9vx is a good option.
Post by Rudolf Sykora
Hello,
can I do something like '9fs sources' but in p9p so that I could read
p9 (not port) sources in linux?
I'd guess it is possible, but I don't know how...
Thanks!
Ruda
erik quanstrom
2013-04-20 12:48:10 UTC
Permalink
Post by Rudolf Sykora
can I do something like '9fs sources' but in p9p so that I could read
p9 (not port) sources in linux?
I'd guess it is possible, but I don't know how...
srv -n sources.cs.bell-labs.com sources
9p ls sources | mc

it's actually exactly the same as plan 9; you could use
plan 9's 9fs script for sources.

- erik
Rudolf Sykora
2013-04-21 10:02:22 UTC
Permalink
Post by erik quanstrom
Post by Rudolf Sykora
can I do something like '9fs sources' but in p9p so that I could read
p9 (not port) sources in linux?
I'd guess it is possible, but I don't know how...
srv -n sources.cs.bell-labs.com sources
9p ls sources | mc
it's actually exactly the same as plan 9; you could use
plan 9's 9fs script for sources.
- erik
Thank you.
I tried it and it works, however, with this, if I understand it right
I can't simply walk around in the filesystem, can I?
(or what do you mean by the '|mc'?)

Ruda
David du Colombier
2013-04-20 17:11:57 UTC
Permalink
Post by Rudolf Sykora
can I do something like '9fs sources' but in p9p so that I could read
p9 (not port) sources in linux?
I'd guess it is possible, but I don't know how...
Using 9pfuse:

9pfuse sources.cs.bell-labs.com /n/sources

Using v9fs:

mount -t 9p 204.178.31.11 /n/sources

You can also do the same using p9p's mount script.

If you want to resolve names automatically,
you can use sqweek's 9mount wrapper:

http://sqweek.net/code/9mount/
--
David du Colombier
Rudolf Sykora
2013-04-21 10:04:39 UTC
Permalink
Post by David du Colombier
9pfuse sources.cs.bell-labs.com /n/sources
mount -t 9p 204.178.31.11 /n/sources
Both ways work for me, however, it is, for some reason, very slow.
(I wait several seconds before 'ls' shows its output...)
Is it slow only for me?

Thanks!
Ruda
Steve Simon
2013-04-21 14:22:06 UTC
Permalink
Post by Rudolf Sykora
Is it slow only for me?
9p doesn't play very well with high(er) latency networks, so much depends
on router perfornace and the geographic distance between you and the labs.
if you are unlucky enough to have your IP routed over satalite links
the performance will be very poor.

Having said all this ensuring that '.' is not at the start of your path
will help (if you are cd'ing to /n/sources), otherwise you lose several
roundtrips whilst rc(1) discovers there is no ls(1) in the currect (remote)
directory.

-Steve

Loading...