NFSMOUNT(2) — Silicon Graphics
NAME
nfsmount − mount an NFS file system
SYNOPSIS
nfsmount(argp, dir, readonly)
struct nfs_args *argp;
char *dir;
i.B int readonly;
DESCRIPTION
Nfsmount mounts an NFS file system on the directory dir. argp points to a structure of the following form:
#include<netinet/in.h>
#include<nfs/nfs_export.h>
struct nfs_args {
struct sockaddr_in *addr; /* file server address */
fhandle_t*fh;/* File handle to be mounted */
intflags;/* flags */
intwsize;/* write size in bytes */
intrsize;/* read size in bytes */
inttimeo;/* initial timeout in .1 secs */
intretrans;/* times to retry send */
};
The readonly argument determines whether the file system can be written on; if it is 0 writing is allowed; if non-zero no writing is done.
RETURN VALUE
Nfsmount returns 0 if the action occurred, −1 if some error occurred.
ERRORS
Nfsmount will fail when one of the following occurs:
[EPERM] The caller is not the super-user.
[ENAMETOOLONG]
The path name for dir is too long.
[ELOOP] Dir contains a symbolic link loop.
[ETIMEDOUT] The server at addr is not accessible. This can only happen if the NFSMNT_SOFT bit is set in argp->flags .
[ENOTDIR] A component of the path prefix in dir is not a directory.
[EBUSY] Another process currently holds a reference to argp->fh.
[EFAULT] argp , argp->addr , or argp->fh does not point within the user’s address space.
[EPFNOSUPPORT]
NFS is not supported by the protocol family of argp->addr .
[EINVAL] One of argp->timeo , argp->rsize , or argp->wsize is not positive, or argp->retrans is negative.
SEE ALSO
mount(2), umount(2), mount(1M).
Version 3.6 — December 20, 1987