Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nfsmount(2) — sysv — mips UMIPS RISC/os 4.52

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mount(2)

umount(2)

mount(1M)



NFSMOUNT(2-SysV)    RISC/os Reference Manual     NFSMOUNT(2-SysV)



NAME
     nfsmount - mount an NFS file system

SYNOPSIS
     nfsmount(argp, dir, readonly)
     struct nfsargs *argp;
     char *dir;
     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 */
             int        flags;    /* flags */
             int        wsize;    /* write size in bytes */
             int        rsize;    /* read size in bytes */
             int        timeo;    /* initial timeout in .1 secs */
             int        retrans;  /* 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.




                         Printed 1/15/91                   Page 1





NFSMOUNT(2-SysV)    RISC/os Reference Manual     NFSMOUNT(2-SysV)



     [EBUSY]             Another process currently holds a refer-
                         ence 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.

     [EINVAL]            An invalid or malformed response was
                         returned to a remote procedure call
                         (RPC) to the server named by argp.

SEE ALSO
     mount(2), umount(2)
     mount(1M) in the System Administrator's Guide.



































 Page 2                  Printed 1/15/91



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