HP-UX Reference (11i v2 07/12) - 7 Device (Special) Files, 9 General Information, Index (vol 10)
v
vxfsio(7) vxfsio(7)
EXAMPLES
The following example shows how application code can use
VX_GETFSOPT to find out if a JFS file system
was mounted with the
-o delaylog option:
int arg = 0;
int fd;
ioctl(fd, VX_GETFSOPT, &arg);
if (arg & VX_FSO_DELAYLOG) {
printf("FS mounted with delaylog option!\n");
}
DIAGNOSTICS
Operation failures can return any of the following values in
errno:
[EACCESS] The calling process does not have write access to the file specified by
fildes.
[EAGAIN] The file system is not currently frozen.
[EBADF] The
fildes argument is not a valid file descriptor open for writing.
[EFAULT] An address specified by an argument is invalid.
[EFBIG] An attempt was made to reserve space larger than the maximum file size limit for this pro-
cess.
[EINVAL] The command or argument is invalid.
[EIO] An I/O error occurred while attempting to perform the operation.
[ENODEV] The file specified by
fildes is not the root directory of a vxfs file system.
[ENOSPC] Requested space could not be obtained.
[EPERM] The process does not have appropriate privilege.
[EROFS] The file system is mounted read-only.
[ETIMEDOUT]
The
VX_FREEZE timeout expired before this call.
SEE ALSO
fsadm_vxfs(1M), mount_vxfs(1M), vxtunefs(1M), fcntl(2), getrlimit(2), ioctl(2), ulimit(2).
HP-UX 11i Version 2: December 2007 Update − 6 − Hewlett-Packard Company 233