test veritas logo


vxfs_get_ioffsets(3)

NAME

vxfs_get_ioffsets - obtain VxFS inode field offsets

SYNOPSIS

#include <sys/types.h>

#include <vxfsutil.h>

int vxfs_get_ioffsets (struct vx_ioffsets *ioffp, size_t size);

AVAILABILITY

VRTSvxfs

DESCRIPTION

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.

RETURN VALUES

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.4.1 vxfs_get_ioffsets(3)