9srv Manual Collection/plan9/u9fs(4) | 9srv Manual Collection/plan9/u9fs(4) |
---|
The options are:
Finally, factotum must be taught a key of the form:
If fsroot is specified, u9fs will serve only that tree; othwise, it will serve the entire Unix file system.
For more information on this procedure, see srv(4) and bind(1).
By default, u9fs serves the entire file system of the Unix machine. It forbids access to devices because the program is single-threaded and may block unpredictably. Using the attach specifier device connects to a file system identical to the usual system except it only permits device access (and may block unpredictably):
(The 9fs command does not accept an attach specifier.) Even so, device access may produce unpredictable results if the block size of the device is greater than 8192, the maximum data size of a 9P message.
The source to u9fs is in the Plan 9 directory /sys/src/cmd/unix/u9fs. To install u9fs on a Unix system with an ANSI C compiler, copy the source to a directory on that system and run make. Then install the binary in /usr/etc/u9fs. Add this line to inetd.conf:
and this to services:
Due to a bug in their IP software, some systems will not accept the service name 9fs, thinking it a service number because of the initial digit. If so, run the service as u9fs or 564.
On systems where listeners cannot be started, execnet(4) is useful for running u9fs via other network mechanisms; the script srvssh in srv(4) provides this for the ssh protocol.
Semantics like remove-on-close or the atomicity of wstat are hard to provide exactly.
9srv Manual Collection/plan9/u9fs(4) | Rev: Thu Dec 10 23:08:35 GMT 2009 |