Symantec logo

vxfs_get_ioffsets

NAME

vxfs_get_ioffsets - obtain VxFS inode field offsets

SYNOPSIS

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

#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)

-l vxfsutil -l dl

i_number (inode number)

-l vxfsutil -l dl

i_nlink (number of links)

-l vxfsutil -l dl

i_size (size of file)

-l vxfsutil -l dl

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.

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.