Re: [9fans] mount p9 sources in p9p

2013-04-21 Thread Rudolf Sykora
On 20 April 2013 14:48, erik quanstrom quans...@quanstro.net wrote:
 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



Re: [9fans] mount p9 sources in p9p

2013-04-21 Thread Rudolf Sykora
On 20 April 2013 19:11, David du Colombier 0in...@gmail.com wrote:
 Using 9pfuse:

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

 Using v9fs:

 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



Re: [9fans] mount p9 sources in p9p

2013-04-21 Thread Steve Simon
 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



[9fans] mount p9 sources in p9p

2013-04-20 Thread 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



Re: [9fans] mount p9 sources in p9p

2013-04-20 Thread Skip Tavakkolian
9vx is a good option.
On Apr 20, 2013 1:51 AM, Rudolf Sykora rudolf.syk...@gmail.com wrote:

 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




Re: [9fans] mount p9 sources in p9p

2013-04-20 Thread erik quanstrom
 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



Re: [9fans] mount p9 sources in p9p

2013-04-20 Thread David du Colombier
 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