Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ exportfs(2) — DG/UX R4.11MU05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

exportfs(1M)

mount(2)



exportfs(2)                    DG/UX R4.11MU05                   exportfs(2)


NAME
       exportfs - make a directory available for mounting via NFS

SYNOPSIS
       #include <sys/export.h>

       int    exportfs (directoryname, exportentryptr)
       char   * directoryname;
       struct export * exportentryptr;

   where:
       directoryname    The local directory or file to be made available
                         for mounting over NFS from NFS clients

       exportentryptr  A pointer to a struct export that describes how
                         this entry should be exported

DESCRIPTION
       The exportfs system call makes a local directory (or file) available
       for mounting via NFS by NFS clients.  The way the entry is exported
       is contained in the structure pointed to by exportentryptr.  See
       <sys/export.h> for details.  If directoryname has already been
       exported, it is logically re-exported with a new entry constructed
       per exportentryptr.  No attempt is made to insure that either the
       parent of directoryname or a child of directoryname has been
       exported already.  Such enforcement is left to the invoking code.

ACCESS CONTROL
       The calling process must have appropriate privilege to successfully
       execute this system call.  For systems supporting the DG/UX
       Capability Option, appropriate privilege is defined as having one or
       more specific capabilities enabled in the effective capability set of
       the calling process.  See capdefaults(5) for the default capability
       for this system call.

       On systems without the DG/UX Capability Option, appropriate privilege
       means that the process has an effective UID of root.  See the
       appropriateprivilege(5) man page for more information.

RETURN VALUE
       0      Successful completion.

       -1     An error occurred.  errno is set to indicate the error.

DIAGNOSTICS
       Errno may be set to one of the following error codes:

       EPERM          The calling process does not have appropriate
                      privilege; or directoryname contains a character not
                      in the allowed character set.

       EINVAL         The exflags field of the structure pointed to by
                      exportentryptr was non-zero and was not EX_RDONLY or
                      EX_RDMOSTLY; or the exauth field of the structure
                      pointed to by exportentryptr was not AUTH_UNIX; or
                      more than EXMAXROOTADDRS were indicated to be part of
                      this export entry or EX_RDMOSTLY was set in the
                      exflags field of the structure and more than
                      EXMAXADDRS were indicated to be part of this export
                      entry.

       EFAULT         Some part of the structure pointed to by
                      exportentryptr lies outside the process's readable
                      address space; or directoryname does not completely
                      reside in the process's address space or
                      directoryname does not terminate in the process's
                      address space.

       EOPNOTSUPP     Kernel support for NFS is not present.

       ENOENT         directoryname does not exist; or a non-terminal
                      component of directoryname does not exist.

       ENOTDIR        A non-terminal component of directoryname was not a
                      directory or symbolic link.

       ENAMETOOLONG   directoryname or a component of directoryname
                      exceeds the length limit for pathnames.

       ENOMEM         There are not enough system resources to resolve
                      directoryname or to expand a symbolic link.

       ELOOP          The number of symbolic links encountered during
                      pathname resolution exceeded MAXSYMLINKS.  A symbolic
                      link cycle is suspected.

SEE ALSO
       exportfs(1M), mount(2), appropriateprivilege(5).
       capdefaults(5).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026