diff options
author | rsc <devnull@localhost> | 2005-01-13 04:49:19 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-13 04:49:19 +0000 |
commit | c8b6342d3c2a167dec16931815926e9e4387e7ef (patch) | |
tree | 80d3ec6ea074462b30639168113def880476dad6 /man/man4 | |
parent | 741f510ce758f77ed5193256fb693a09a7daecce (diff) | |
download | plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.gz plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.bz2 plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.zip |
Many small edits.
Diffstat (limited to 'man/man4')
-rw-r--r-- | man/man4/INDEX | 1 | ||||
-rw-r--r-- | man/man4/acme.4 | 12 | ||||
-rw-r--r-- | man/man4/import.4 | 106 | ||||
-rw-r--r-- | man/man4/plumber.4 | 6 |
4 files changed, 114 insertions, 11 deletions
diff --git a/man/man4/INDEX b/man/man4/INDEX index bd0f7bc1..407b7b0f 100644 --- a/man/man4/INDEX +++ b/man/man4/INDEX @@ -2,5 +2,6 @@ intro 0intro.4 9pserve 9pserve.4 acme acme.4 +import import.4 plumber plumber.4 ramfs ramfs.4 diff --git a/man/man4/acme.4 b/man/man4/acme.4 index 7d5f248e..40143a44 100644 --- a/man/man4/acme.4 +++ b/man/man4/acme.4 @@ -25,14 +25,10 @@ of itself. When a command is run under .IR acme , -a directory holding these files is mounted on -.B /mnt/acme -(also bound to -.BR /mnt/wsys ) -and also -.BR /dev ; -the files mentioned here -appear in both those directories. +a directory holding these files is posted as the 9P service +.B acme +(using +.IR 9pserve (4)). .PP Some of these files supply virtual versions of services available from the underlying environment, in particular the character terminal files in Plan 9's diff --git a/man/man4/import.4 b/man/man4/import.4 new file mode 100644 index 00000000..04d8fbe5 --- /dev/null +++ b/man/man4/import.4 @@ -0,0 +1,106 @@ +.TH IMPORT 4 +.SH NAME +import \- import 9P resources from another system +.SH SYNOPSIS +.B import +[ +.B -df +] +[ +.B -n +.I ns +] +[ +.B -p +.I prog +] +[ +.B -s +.I service +] +.I system +.SH DESCRIPTION +.I Import +presents the 9P service +.I service +(default +.BR plumb ) +running on +.I system +as a service on the local system, +in the current name space. +.PP +The +.B -n +option sets the remote name space directory +where +.I import +should expect to find +.IR service . +If it is not specified, +.I import +uses name of the local system's name space directory. +(Since name space directories are conventionally inside +.BR /tmp , +the path have different meanings on the two systems.) +.PP +.I Import +connects to +.I system +using +.IR ssh (1). +It invokes +.I import +on the remote system to carry out the remote +side of the protocol. +The +.B -p +option specifies the path to +.I import +on the remote system, in case it is not in the system search path. +.PP +The +.B -d +option turns on debugging. +The +.B -f +option keeps +.I import +from forking itself into the background, also useful for debugging. +.SH EXAMPLE +Suppose you run +.B sam +.B -r +to the CPU server +.IR anna . +.I Sam +wants to talk to a plumber on the local terminal, +but the file names will refer to files on +.IR anna . +.PP +To fix this problem, create a new name space directory +and start a new plumber on +.IR anna : +.IP +.EX +remotens=/tmp/ns.`whoami`.on.`hostname` +ssh anna mkdir $remotens +ssh anna NAMESPACE=$remotens plumber +.EE +Now import that plumber to the local name space before starting +.I sam +and +.IR 9term : +.IP +.EX +NAMESPACE=/tmp/ns.anna +mkdir $NAMESPACE +import -n $remotens -s plumb anna +sam & +9term ssh anna & +.EE +.SH SOURCE +.B \*9/src/cmd/import.c +.SH SEE ALSO +.IR 9pserve (4), +.IR intro (4) diff --git a/man/man4/plumber.4 b/man/man4/plumber.4 index 95259a08..0dfe68bb 100644 --- a/man/man4/plumber.4 +++ b/man/man4/plumber.4 @@ -16,7 +16,7 @@ messages between programs. Its behavior is programmed by a .I plumbing file (default -.BR /usr/$user/lib/plumbing ) +.BR $HOME/lib/plumbing ) in the format of .IR plumb (7). .PP @@ -96,9 +96,9 @@ However, ports are never deleted dynamically; if a new set of rules does not include a port that was defined in earlier rules, that port will still exist (although no new messages will be delivered there). .SH FILES -.TF /usr/$user/lib/plumbing +.TF $HOME/lib/plumbing .TP -.B /usr/$user/lib/plumbing +.B $HOME/lib/plumbing default rules file .TP .B \*9/plumb |