MAN.9FRONT.ORG RTFM


     OEXPORTFS(4)                                         OEXPORTFS(4)

     NAME
          oexportfs - legacy exportfs for cpu and import

     SYNOPSIS
          oexportfs [ options ]

     DESCRIPTION
          Oexportfs is older version of the exportfs(4) program that
          handles an initial protocol to establish a root directory
          for the exported name space.  It also provides authentica-
          tion and encryption using the ssl(3) device.

          It is used exclusively by the deprecated cpu(1) and
          import(4) services.

          The options are:

          -d -f dbgfile
               Log all 9P traffic to dbgfile (default /tmp/exportdb).

          -P patternfile
               Restrict the set of exported files.  Patternfile con-
               tains one regular expression per line, to be matched
               against path names relative to the current working
               directory and starting with /.  For a file to be
               exported, all lines with a prefix + must match and all
               those with prefix - must not match.

          -R   Make the served name space read only.

          -r root
               Serve the name space rooted at root.

          -S service
               Serve the result of mounting service. A separate mount
               is used for each attach(5) message, to correctly handle
               servers in which each mount corresponds to a different
               client e.g.,( rio(4)).

          -s   equivalent to -r /; kept for compatibility.

          -m msize
               Set the maximum message size that oexportfs should
               offer to send (see version(5)); this helps tunneled 9P
               connections to avoid unnecessary fragmentation.

          -A address
               Use the network address to announce aan(8) connections,
               if requested by the initial protocol.

     OEXPORTFS(4)                                         OEXPORTFS(4)

          -a   Authenticate the user with the p9any protocol before
               running the regular oexportfs session; used when
               oexportfs is invoked to handle an incoming network con-
               nection.  Exportfs creates a new name space for each
               connection, using /lib/namespace by default (see
               namespace(6)).

          -B address
               Dial address, authenticate as a p9any client, and then
               serve that network connection.  Requires setting the
               root of the name space with -r or -s.  The remote sys-
               tem should run import -B to handle the call.  See
               import(4) for an example.

          -e 'enc auth'
               Set the encryption and authentication algorithms to use
               for encrypting the wire traffic (see ssl(3)). The
               defaults are rc4_256 and sha1.

          -N nsfile
               Serve the name space described by nsfile.

          -n   Disallow mounts by user none.

     SOURCE
          /sys/src/cmd/exportfs/oexportfs.c

     SEE ALSO
          dial(2), exportfs(4), import(4), aan(8), listen(8)