add srv -a option

This commit is contained in:
rsc 2005-03-21 17:24:21 +00:00
parent b8c9f31785
commit 5c84c448b8
4 changed files with 470 additions and 24 deletions

View file

@ -4,7 +4,16 @@
.SH SYNOPSIS
.B 9pserve
[
.B -v
.B -lv
]
[
.B -A
.I aname
.I afid
]
[
.B -M
.I msize
]
.I addr
.SH DESCRIPTION
@ -39,6 +48,33 @@ and clunks any outstanding fids belonging to the client.
is typically not invoked directly; use
.IR post9pservice (3)
instead.
.PP
The options are:
.TP
.B -l
logging; write a debugging log to
.IB addr .log \fR.
.TP
.B -v
verbose; more verbose when repeated
.TP
.B -A
rewrite all attach messages to use
.I aname
and
.IR afid ;
used to implement
.IR srv (4)'s
.B -a
option
.TP
.B -M
do not initialize the connection with a
.B Tversion
message;
instead assume 9P2000 and a maximum message size of
.IR msize
.PD
.SH "SEE ALSO
.IR intro (4),
.IR intro (9p)

View file

@ -3,6 +3,13 @@
srv, 9fs \- start network file esrvice
.SH SYNOPSIS
.B srv
[
.B -a
]
[
.B -k
.I keypattern
]
.I address
[
.I srvname
@ -22,6 +29,23 @@ as
.IR address ).
.PP
The
.B -a
option causes
.I srv
to post a pre-authenticated connection to the file system
.I aname
(by default, the empty string;
see
.IR attach (9p)).
.I Srv
authenticates over the 9P connection to establish a valid auth fid.
.IR Keypattern ,
if specified, is used to select the key used for authentication.
Client attach requests are rewritten to use the specified
.I aname
and auth fid.
.PP
The
.I 9fs
command executes the
.I srv