test veritas logo


vxfs_inotofd(3)

NAME

vxfs_inotofd - get the file descriptor based on the inode number

SYNOPSIS

cc -I /opt/VRTSvxfs/include -L /opt/VRTSvxfs/lib
-l vxfsutil -ldl

int vxfs_inotofd(int fd, uint64_t inode_number,

int mode, int *newfd)

AVAILABILITY

VRTSvxfs

DESCRIPTION

The vxfs_inotofd() function returns, in *newfd, a file desciptor for a file with the specified inode number in the file system associated with fd, which can refer to any file in the file system. If fd is associated with a mounted Storage Checkpoint, the returned file descriptor is specific to that Storage Checkpoint.

Currently, the mode argument can only have a value of O_RDONLY.

NOTES

This function is supported only on Version 6 and later disk layouts.

RETURN VALUES

vxfs_inotofd() returns zero on success, non-zero on failure.

ERRORS

EINVAL The specified inode number is beyond the maximum inode number.
ENOENT The specified inode number does not exist.

SEE ALSO

vxfs_inostat.3(3), vxfs_inotopath.3(3)


VxFS 8.0 vxfs_inotofd(3)