vmount - Low-level NFS mount program for Vesta


vmount [flags] hostname filehandle /directory

This program is mainly for use in shell scripts; refer to See Also below.


The vmount command simply sets up arguments and calls the mount() system call to mount an NFS filesystem. It is necessary because the standard mount(8) program is too elaborate. The standard mount program interacts with the mount daemon to do name mapping, but Vesta needs to be able to mount the repository given only a host name, port, numeric filehandle, and mount point directory.

The filehandle must be given in hex. It is filled out to the requisite 32 bytes by adding trailing (not leading) zeros. This is convenient considering the way the Vesta repository constructs filehandles.


Each of the following flags sets one bit of the mnt_flag or one field of the struct nfs_args data structure passed to the mount() system call. The flag descriptions are taken directly from the Tru64 Unix mount.h header file. The flags are not all meaningful or useful when mounting the Vesta NFS server.

-p port
UDP port number for NFS server, default 2049.
M_RDONLY: The file system should be treated as read only; no writing is allowed (even by a process with appropriate privilege). Physically write-protected and magnetic tape file systems must be mounted read only or errors will occur when access times are updated, whether or not any explicit write is attempted.
M_NOEXEC: Do not allow files to be executed from the file system.
M_NOSUID: Do not honor setuid or setgid bits on files when executing them.
M_NODEV: Do not interpret special files on the file system.
M_SYNCHRONOUS: All I/O to the file system should be done synchronously.
M_FMOUNT: Forcibly mount, even if the file system is unclean.
M_UPDATE: The mount command is being applied to an already mounted file system. This allows the mount flags to be changed without requiring that the file system be unmounted and remounted.
M_GRPID: All new files and directories will inherit the group ID of the parent. When this is not specified, SVID III semantics apply, for example, if the parent directory's mode bits include the parent's group ID. If IS_GID is off, then it inherits the processes group ID.
NFSMNT_SOFT: soft mount (hard is default)
-W size
NFSMNT_WSIZE: set write size (default 8192)
-R size
NFSMNT_RSIZE: set read size (default 8192)
-T tnths
NFSMNT_TIMEO: set initial timeout (in 1/10 secs; default 11)
-E count
NFSMNT_RETRANS: set number of request retries (default 4)
-H name
NFSMNT_HOSTNAME: set hostname for error printf (default host:hdl)
NFSMNT_INT: allow interrupts on hard mount
NFSMNT_NOCONN: no connect on mount - any responder
NFSMNT_NOAC: don't cache attributes
-N sec
NFSMNT_ACREGMIN: set min seconds for file attr cache (def 3600)
-X sec
NFSMNT_ACREGMAX: set max seconds for file attr cache (def 36000)
-D sec
NFSMNT_ACDIRMIN: set min seconds for dir attr cache (def 3600)
-Y sec
NFSMNT_ACDIRMAX: set max seconds for dir attr cache (def 36000)
NFSMNT_NOCTO: don't freshen attributes on open
NFSMNT_POSIX: static pathconf kludge info (not supported)
NFSMNT_AUTO: automount file system

See Also

mountrepos(8), umountrepos(8), repository(8), repos-ui(1).


Tim Mann

Last modified on Tue Nov 13 12:58:25 EST 2001 by ken@xorian.net
     modified on Tue Jul  6 19:11:03 PDT 1999 by mann
This page was generated automatically by mtex software.