/* @(#)src/common/cmd/vxfs/include/vxfsutil.h	3.1 01/14/02 14:37:54 - Copyright 1991-2003 */
/* #ident "@(#)vxfs:src/common/cmd/vxfs/include/vxfsutil.h	3.1" */

/*
 * (c) Copyright 1991-2003 VERITAS Software Corporation. All Rights Reserved.
 */

#ifndef	_VXFSUTIL_H
#define	_VXFSUTIL_H

/*
 * Fields within vx_inode which can be externally visible
 */

struct vx_ioffsets {
	unsigned int	ioff_dev;	/* offset of i_dev within vx_inode */
	unsigned int	ioff_dev_sz;	/* size of i_dev field in bytes */
	unsigned int	ioff_number;	/* offset of i_number within vx_inode */
	unsigned int	ioff_number_sz;	/* size of i_number field in bytes */
	unsigned int	ioff_nlink;	/* offset of i_nlink within vx_inode */
	unsigned int	ioff_nlink_sz;	/* size of i_nlink field in bytes */
	unsigned int	ioff_size;	/* offset of i_size within vx_inode */
	unsigned int	ioff_size_sz;	/* size of i_size field in bytes */
};

extern int	vxfsu_get_ioffsets(struct vx_ioffsets *, size_t);

#endif /* _VXFSUTIL_H */
