vxfs_get_ioffsets - obtain VxFS inode field offsets
cc -I /opt/VRTSfssdk/4.0/include -L /opt/VRTSfssdk/4.0/lib/64-l vxfsutil -l dl#include <sys/types.h>
#include <vxfsutil.h>
int vxfs_get_ioffsets (struct vx_ioffsets *ioffp, size_t size);
VRTSvxfs
The vxfs_get_ioffsets function returns the offset and size, in bytes, of certain public fields in the vx_inode inode structure, for any VxFS file. Public fields include:
i_dev (device number)
i_number (inode number)
i_nlink (number of links)
i_size (size of file)The offsets depend on whether the system is running a 32-bit or 64-bit executable, and the specific release of VxFS.
vxfs_get_ioffsets() has two parameters, a pointer to a vx_ioffsets structure and the size of this structure in bytes.
Upon successful completion, vxfs_get_ioffsets() populates the structure pointed to by the ioffp argument and returns 0. Otherwise, vxfs_get_ioffsets() returns a negative number.
VxFS 7.3 | vxfs_get_ioffsets(3) |