[BACK]Return to xfs_types.h CVS log [TXT][DIR] Up to [Development] / xfs-linux-nodel

File: [Development] / xfs-linux-nodel / xfs_types.h (download)

Revision 1.1, Fri Oct 29 17:23:06 1993 UTC (24 years ago) by doucette
Branch: MAIN

Initial revision

#ifndef _FS_XFS_TYPES_H
#define	_FS_XFS_TYPES_H

#ident	"$Revision: 1.3 $"

/*
 * xFS types
 */

#include <sys/types.h>

typedef int8_t		__int8_t;
typedef	u_int8_t	__uint8_t;

typedef	int16_t		__int16_t;
typedef	u_int16_t	__uint16_t;

typedef __uint64_t	xfs_fsblock_t;	/* blockno in filesystem */
typedef __uint32_t	xfs_agblock_t;	/* blockno in alloc. group */
typedef	__uint32_t	xfs_extlen_t;	/* extent length in blocks */
typedef	__uint32_t	xfs_agnumber_t;	/* allocation group number */
typedef	__uint64_t	xfs_ino_t;	/* inode number */
typedef	__uint32_t	xfs_agino_t;	/* within allocation grp inode number */

#define	NULLFSBLOCK	((xfs_fsblock_t)-1)
#define	NULLAGBLOCK	((xfs_agblock_t)-1)
#define	NULLFSINO	((xfs_ino_t)-1)
#define	NULLAGINO	((xfs_agino_t)-1)

typedef struct xfs_uuid
{
	__uint64_t	hi, lo;
} xfs_uuid_t;

typedef enum { XFS_LOOKUP_EQ, XFS_LOOKUP_LE, XFS_LOOKUP_GE } xfs_lookup_t;

#endif	/* !_FS_XFS_TYPES_H */