3 exportfs, srvfs \- file server plumbing
29 is a user level file server that allows Plan 9 cpu servers, rather
30 than file servers, to export portions of a name space.
31 It is usually started by other programs such as
33 after a secure channel has been established.
35 then acts as a relay file server: operations in the imported file
36 tree are executed on the remote server and the results returned. This
37 gives the appearance of exporting a name space from a remote machine
38 into a local file tree.
49 Restrict the set of exported files.
51 contains one regular expression per line,
52 to be matched against path names
53 relative to the current working directory
56 For a file to be exported, all lines with a prefix
58 must match and all those with prefix
63 Make the served name space read only.
66 Serve the name space rooted at
70 Serve the result of mounting
72 A separate mount is used for each
75 to correctly handle servers in which each mount
76 corresponds to a different client
84 kept for compatibility.
87 Set the maximum message size that
89 should offer to send (see
92 9P connections to avoid unnecessary fragmentation.
100 to create a mountable file system from a name space
103 which is created with mode
106 The name space is the directory tree rooted at
113 options, if present, are relayed to
116 To export the archive of one user for one month, except for secrets,
120 echo '+ ^/(2003(/10..(/usr(/glenda/?)?)?)?)?' > /tmp/pattern
121 echo '- \e.(aes|pgp)$' >> /tmp/pattern
122 exportfs -P /tmp/pattern
127 to enable mounting of an FTP file system (see
134 with a broken process so a remote person may debug the program:
138 srvfs broke /mnt/term/proc
143 to obtain a copy of a service to be manipulated directly
144 by a user program like
148 srvfs nfs.boot /srv/boot
149 aux/nfsserver -f /srv/nfs.boot
154 to spy on all accesses to a particular subtree:
158 tail -f /tmp/exportdb &
159 mount /srv/spy /n/spy
163 .B /sys/src/cmd/exportfs
165 .B /sys/src/cmd/srvfs.c