vfsmount.2 (2010 09)
v
vfsmount(2) vfsmount(2)
(TO BE OBSOLETED)
MS_NO_FSASYNC Specify that rigorous posting of file system metadata is to be
used. This is the default.
MS_FSASYNC Specify that relaxed posting of file system metadata is to be
used. This may lead to better performance for certain appli-
cations; but there is increased potential for data loss in case of
a crash.
MS_FSASYNC and MS_NO_FSASYNC
are mutually exclusive.
Notes
The
MOUNT_NFS type is no longer supported through this interface.
RETURN VALUE
vfsmount() returns the following values:
0 Successful completion.
-1 Failure. No file system is mounted.
errno is set to indicate the error.
ERRORS
If
vfsmount() fails, errno is set to one of the following values.
[EBUSY] dir is not a directory, or another process currently holds a reference to it.
[EBUSY] No space remains in the mount table.
[EBUSY] The superblock for the file system had a bad magic number or an out-of-range block size.
[EBUSY] Not enough memory was available to read the cylinder group information for the file sys-
tem.
[EFAULT] data or dir points outside the allocated address space of the process.
[EINVAL] type is not MOUNT_UFS,orMOUNT_CDFS.
[EIO] An I/O error occurred while reading from or writing to the file system.
[EIO] An attempt was made to mount a physically write protected or magnetic tape file system
as read-write.
[ELOOP] Too many symbolic links were encountered while translating the path name of file system
referred to by data or dir .
[ENAMETOOLONG]
The path name of the file system referred to by data or dir is longer than
PATH_MAX
bytes, or the length of a component of the path name exceeds NAME_MAX bytes while
_POSIX_NO_TRUNC is in effect.
[ENOENT] The file system referred to by data or dir does not exist.
[ENOENT] The file system referred to by data does not exist.
[ENOTBLK] The file system referred to by data is not a block device. This message can occur only
during a local mount.
[ENOTDIR] A component of the path prefix in dir is not a directory.
[ENOTDIR] A component of the path prefix of the file system referred to by data or dir is not a direc-
tory.
[ENXIO] The major device number of the file system referred to by data is out of range (indicating
that no device driver exists for the associated hardware).
[EPERM] The caller does not have appropriate privileges.
DEPENDENCIES
NFS
If
vfsmount() fails, errno can also be set to one of the following values.
[EFAULT] A pointer in the data structure points outside the process’s allocated address space.
[EINVAL] A value in a field of data is out of proper range.
2 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: September 2010