Previous  |  Next  >  
Product: File System Manual Pages for Storage Foundation   
Manual: Library Functions (3)   

vxfs_get_ioffsets

NAME

vxfs_get_ioffsets - obtain VxFS inode field offsets

SYNOPSIS


cc -l vxfsutil
#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)

returns a negative number.

i_number (inode number)

returns a negative number.

i_nlink (number of links)

returns a negative number.

i_size (size of file)

returns a negative number.

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.5 and later releases.

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.

 ^ Return to Top Previous  |  Next  >  
Product: File System Manual Pages for Storage Foundation  
Manual: Library Functions (3)  
VERITAS Software Corporation
www.veritas.com