EXPORTFS(4) EXPORTFS(4) NAME exportfs, srvfs - network file server plumbing SYNOPSIS exportfs [ -an ] [ -c ctlfile ] srvfs name dir DESCRIPTION Exportfs is a user level file server that allows Plan 9 com- pute 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 pro- cess. 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. The -a option instructs exportfs to authenticate the user, usually because it is being invoked from a remote machine. The -n option disallows export to user none. The -c options specifies a network control file onto which exportfs will push the fcall line discipline. This option is intended for networks that do not preserve read/write boundaries. The cpu command uses exportfs to serve device files in the terminal. The import(4) command calls exportfs on a remote machine, permitting users to access arbitrary pieces of name space on other systems. Srvfs uses exportfs to create a mountable file system from a name space: a subsequent mount (see bind(1)) of /srv/name will reproduce the name space rooted at dir. One might use srvfs to enable mounting of an FTP file system (see ftpfs(4)) in several windows. SOURCE /sys/src/cmd/exportfs /sys/src/cmd/srvfs.c Page 1 Plan 9 (printed 12/21/24)