[BACK]Return to xfs_dfrag.h CVS log [TXT][DIR] Up to [Development] / linux-2.6-xfs / fs / xfs

File: [Development] / linux-2.6-xfs / fs / xfs / xfs_dfrag.h (download)

Revision 1.1, Sat Mar 6 00:22:19 1999 UTC (18 years, 7 months ago) by cwf
Branch: MAIN

pv:512169
Original checkin of code to swap extents used in
the xfs_fsr defragmentation utility.

#ifndef _FS_XFS_DFRAG_H
#define	_FS_XFS_DFRAG_H

#ident "$Id$"

/*
 * Structure passed to xfs_swapext
 */

typedef struct xfs_swapext
{
	__int64_t	sx_version;	/* version */	
	__int64_t	sx_fdtarget;	/* fd of target file */
	__int64_t	sx_fdtmp;	/* fd of tmp file */
	off64_t		sx_offset; 	/* offset into file */
	off64_t		sx_length; 	/* leng from offset */
	char		sx_pad[16];	/* pad space, unused */
	xfs_bstat_t	sx_stat;	/* stat of target b4 copy */
} xfs_swapext_t;

/* 
 * Version flag
 */
#define XFS_SX_VERSION		0


#ifdef _KERNEL
/*
 * Prototypes for visible xfs_dfrag.c routines.
 */

/*
 * Syssgi interface for xfs_swapext
 */
int	xfs_swapext(struct xfs_swapext *sx);

#endif	/* _KERNEL */

#endif	/* !_FS_XFS_DFRAG_H */