vxfs_inotofd - get the file descriptor based on the inode number
cc -I /opt/VRTSvxfs/include -L /opt/VRTSvxfs/lib-l vxfsutil -ldlint vxfs_inotofd(int fd, uint64_t inode_number,
intmode, int *newfd)
VRTSvxfs
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_inostat.3(3), vxfs_inotopath.3(3)
VxFS 8.0 | vxfs_inotofd(3) |