Exportfs is a user level file server that allows Plan 9 cpu servers,
rather than file servers, to export portions of a name space.
It is usually started by other programs such as rcpu(1) after
a secure channel has been established. Exportfs then acts as a
relay file server: operations in the imported file tree are executed
the remote server and the results returned. This gives the appearance
of exporting a name space from a remote machine into a local file
The options are:
–d –f dbgfile
Log all 9P traffic to dbgfile (default /tmp/exportdb).|
R Make the served name space read only.
Restrict the set of exported files. Patternfile contains one regular
expression per line, to be matched against path names relative
to the current working directory and starting with /. For a file
to be exported, all lines with a prefix + must match and all those
with prefix – must not match.
Serve the name space rooted at root.|
s equivalent to –r /; kept for compatibility.
Serve the result of mounting service. A separate mount is used
for each attach(5) message, to correctly handle servers in which
each mount corresponds to a different client e.g.,( rio(4)).|
Srvfs invokes exportprog (default /bin/exportfs) to create a mountable
file system from a name space and posts it at /srv/name, which
is created with mode perm (default 0600). The name space is the
directory tree rooted at path. The –d, –P, and –R options, if present,
are relayed to exportprog.
Set the maximum message size that exportfs should offer to send
(see version(5)); this helps tunneled 9P connections to avoid
unnecessary fragmentation. |