3 exportfs, srvfs \- file server plumbing
45 is a user level file server that allows Plan 9 cpu servers, rather
46 than file servers, to export portions of a name space.
47 It is usually started by other programs such as
49 after a secure channel has been established.
51 then acts as a relay file server: operations in the imported file
52 tree are executed on the remote server and the results returned. This
53 gives the appearance of exporting a name space from a remote machine
54 into a local file tree.
59 Log all 9P traffic to stderr.
62 Restrict the set of exported files.
64 contains one regular expression per line,
65 to be matched against path names
66 relative to the current working directory
69 For a file to be exported, all lines with a prefix
71 must match and all those with prefix
76 Make the served name space read only.
79 Serve the name space rooted at
83 Serve the result of mounting
85 A separate mount is used for each
88 to correctly handle servers in which each mount
89 corresponds to a different client
97 kept for compatibility.
100 Set the maximum message size that
102 should offer to send (see
105 9P connections to avoid unnecessary fragmentation.
113 to create a mountable file system from a name space
116 which is created with mode
119 The name space is the directory tree rooted at
126 options, if present, are relayed to
129 To export the archive of one user for one month, except for secrets,
133 echo '+ ^/(2003(/10..(/usr(/glenda/?)?)?)?)?' > /tmp/pattern
134 echo '- \e.(aes|pgp)$' >> /tmp/pattern
135 exportfs -P /tmp/pattern
140 to enable mounting of an FTP file system (see
147 with a broken process so a remote person may debug the program:
151 srvfs broke /mnt/term/proc
156 to obtain a copy of a service to be manipulated directly
157 by a user program like
161 srvfs nfs.boot /srv/boot
162 aux/nfsserver -f /srv/nfs.boot
167 to spy on all accesses to a particular subtree:
171 tail -f /tmp/exportdb &
172 mount /srv/spy /n/spy
176 .B /sys/src/cmd/exportfs
178 .B /sys/src/cmd/srvfs.c