vxfs_inotofd - get the file descriptor based on the inode number
cc -I /opt/VRTSvxfs/include -L /opt/VRTSvxfs/lib/64-l vxfsutil -ldl
int vxfs_inotofd(int fd, uint64_t inode_number,intmode, int *newfd)
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.
This function is supported only on Version 6 and later disk layouts.
vxfs_inotofd() returns zero on success, non-zero on failure.
EINVAL The specified inode number is beyond the maximum inode number. ENOENT The specified inode number does not exist.
|VxFS 5.1 SP1||vxfs_inotofd (3)|