exportfs, srvfs – network file server plumbing|
exportfs [ options ]
Exportfs is a user level file server that allows Plan 9 compute
servers, rather than file servers, to export portions of a name
space across networks. The service is started either by the cpu(1)
command or by a network listener process. An initial protocol
establishes a root directory for the exported name space. The
connection to exportfs is then mounted, typically on /mnt/term.
Exportfs then acts as a relay file server: operations in the imported
file tree are executed on the remote server and the results returned.
This gives the appearance of exporting a name space from a remote
machine into a local file tree.
–A addressUse the network address to announce (see dial(2)) aan(8) connections, if requested by the initial protocol.
–a Authenticate the user with the p9any protocol before running the regular exportfs session; used when exportfs is invoked to handle an incoming network connection. Exportfs creates a new name space for each connection, using /lib/namespace by default (see namespace(6)). –B addressDial address, authenticate as a p9any client, and then serve that network connection. Requires setting the root of the name space with –r or –s. The remote system should run import –B to handle the call. See import(4) for an example.
–d –f dbgfile
–N nsfile Serve the name space described by nsfile.
–n Disallow mounts by user none.
–r root Bypass the initial protocol, serving the name space rooted at root.
–S service bypass the initial protocol, serving 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)).
–s equivalent to –r /; kept for compatibility.
To export the archive of one user for one month, except for secrets,|
dial(2), import(4), aan(8), listen(8)|