9srv Manual Collection/plan9/import(4) | 9srv Manual Collection/plan9/import(4) |
---|
import -m [ options ] system mountpoint
import -B [ options ] mountpoint [ cmd [ args ... ] ]
A process is started on the remote machine, with authority of the user of import, to perform work for the local machine using the exportfs(4) service. The default port used is TCP 17007. If mountpoint is omitted import uses the name of the remote file as the local mount point.
The options are:
The -m option mounts a file exported by exportfs(4) with its -r or -S options, which skip the part of its protocol that allows the importer to specify the file to export. Instead, the file or name space is selected by exportfs, and import mounts it on mountpoint as guided by the other options.
The -B option runs import in ``backwards'' mode. In this mode, import runs a p9any authentication (as server) over its file descriptor 0 (expected to be an incoming network connection from exportfs -B), mounts the connection onto mntpt, and optionally runs cmd args.
Suppose that the machine moscvax has access to a private file server containing public web pages that need to be served by the less-trusted server webvax. Webvax runs the following listener (see listen(8)) on TCP port 999:
When moscvax boots, it runs
to serve a read-only copy of /usr/web to webvax. When webvax gets the call, import mounts the served tree onto its own /usr/web and then runs /bin/restarthttpd to restart httpd(8).
9srv Manual Collection/plan9/import(4) | Rev: Fri Aug 02 23:05:49 BST 2013 |