nfsmount(2) nfsmount(2)
NAME
nfsmount - mount an NFS file system
SYNOPSIS
nfsmount(addr, fh, dir, roflag, hard)
struct sockaddr_in *addr;
fhandle_t *fh;
char *freq;
int roflag;
int hard;
DESCRIPTION
nfsmount mounts an NFS file system on the directory dir.
addr is the udp(5P) address of the server that owns the file
system to mount. fh is a file handle, obtained from the
server, to identify the root directory on the server that is
being mounted.
The roflag argument determines whether the file system can
be written on; if it is 0 writing is allowed, if non-zero no
writing is done.
The hard argument determines whether the remote file system
is mounted hard or soft. A soft mount causes an error to be
returned when a remote access times out. Hard mounts cause
the access to retry until the server responds. A value of 1
indicates a hard mount.
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 or the path
name given for dir contains characters with
the high bit set.
[ENAMETOOLONG] The path name for dir is too long.
[ELOOP] dir contains a symbolic link loop.
[ETIMEDOUT] The server at addr is not accessable. This
can only happen if the hard flag is set.
[ENOTDIR] A component of the path prefix in dir is not
a directory.
[EBUSY] Another process currently holds a reference
to fh.
Page 1 (last mod. 12/14/86)
nfsmount(2) nfsmount(2)
SEE ALSO
mount(2), umount(2), mount(1M).
Page 2 (last mod. 12/14/86)