exportfs(2) DG/UX 5.4.2 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's effective user id must be superuser.
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 process's effective user id is not superuser; 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
Licensed material--property of copyright holder(s) 1
exportfs(2) DG/UX 5.4.2 exportfs(2)
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).
Licensed material--property of copyright holder(s) 2