vxfs_get_ioffsets - obtain VxFS inode field offsets
cc -I /opt/VRTS/include -L /opt/VRTS/lib
-l vxfsutil -l dl
cc -I /opt/VRTS/include -L /opt/VRTS/lib/sparcv9
-l vxfsutil -l dl
int vxfs_get_ioffsets (struct vx_ioffsets *ioffp, size_t size);
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:
The offsets depend on whether the system is running a 32-bit or 64-bit executable, and the specific release of VxFS. This interface is supported only on VxFS 3.4 and later releases.
You must specify the /opt/VRTSvxfs/lib directory for 32-bit executables, and the /opt/VRTSvxfs/lib/sparcv9 directory for 64-bit executables.
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.