HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
m
mount(2) mount(2)
MS_BEHIND Writes to disks are to be done asynchronously, where possible,
without waiting for completion. This is the default on Series 700
systems, as it was prior to release 10.0.
MS_BEHIND and MS_DELAY are mutually exclusive.
MS_NO_FSASYNC Rigorous posting of file system metadata is to be used. This is
the default.
MS_FSASYNC Relaxed posting of file system metadata is to be used. This may
lead to better performance for certain applications; but there is
increased potential for data loss in case of a crash.
MS_FSASYNC and MS_NO_FSASYNC are mutually exclusive.
RETURN VALUE
mount() returns the following values:
0 Successful completion.
-1 Failure. errno is set to indicate the error.
ERRORS
If mount() fails, errno is set to one of the following values.
[EACCES] A component of the path prefix denies search permission.
[EBUSY] path is currently mounted on, is someone’s current working directory, or is otherwise
busy.
[EBUSY] The file system associated with fs is currently mounted.
[EBUSY] The system cannot allocate the necessary resources for this mount.
[EFAULT] fs, path or dataptr points outside the allocated address space of the process. The reli-
able detection of this error is implementation dependent.
[EINVAL] An argument to the system call is invalid, or a sanity check failed.
[ELOOP] Too many symbolic links were encountered in translatinga path name argument.
[ENAMETOOLONG]
The length of a path name exceeds PATH_MAX, or a path name component is longer
than NAME_MAX while _POSIX_NO_TRUNC
is in effect.
[ENODEV] fstype is a file system that is not been configured into the kernel.
[ENOENT] A named file does not exist.
[ENOENT] fs or path is null.
[ENOTBLK] fs is not a block special device and the file system type requires it to be.
[ENOTDIR] A component of a path prefix is not a directory.
[ENOTDIR] path is not a directory.
[ENXIO] The device associated with fs does not exist and the file system type requires it to be.
[EPERM] The process does not have the appropriate privilege and the file system type requires
it.
[EROFS] The requested file system is write protected and mflag requests write permission.
WARNINGS
If
mount() is called from the program level (i.e., not called with the mount command (see mount(1M)),
the table of mounted devices contained in /etc/mnttab is not updated. The updating of
/etc/mnttab is performed by the mount and syncer commands (see mount(1M) and syncer(1M)).
SEE ALSO
mount(1M), syncer(1M), sysfs(2), umount(2).
HP-UX Release 11i: December 2000 − 2 − Section 2−−161
___
___