/* @(#)src/common/cmd/vxfs/include/vxfsutil.h	3.1.48.2 06/21/01 17:30:27 - Copyright 1991-2002 */
/* #ident "@(#)vxfs:src/common/cmd/vxfs/include/vxfsutil.h	3.1.48.2" */

/*
 * Copyright (c) 2001 VERITAS Software Corporation.  ALL RIGHTS RESERVED.
 * UNPUBLISHED -- RIGHTS RESERVED UNDER THE COPYRIGHT
 * LAWS OF THE UNITED STATES.  USE OF A COPYRIGHT NOTICE
 * IS PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION
 * OR DISCLOSURE.
 *
 * THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND
 * TRADE SECRETS OF VERITAS SOFTWARE.  USE, DISCLOSURE,
 * OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
 * EXPRESS WRITTEN PERMISSION OF VERITAS SOFTWARE.
 *
 *		RESTRICTED RIGHTS LEGEND
 * USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT IS
 * SUBJECT TO RESTRICTIONS AS SET FORTH IN SUBPARAGRAPH
 * (C) (1) (ii) OF THE RIGHTS IN TECHNICAL DATA AND
 * COMPUTER SOFTWARE CLAUSE AT DFARS 252.227-7013.
 *		VERITAS SOFTWARE
 * 1600 PLYMOUTH STREET, MOUNTAIN VIEW, CA 94043
 */

#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 */
