File: [Development] / xfs-linux-nodel / xfs_itable.h (download)
Revision 1.2, Thu Jul 21 00:45:50 1994 UTC (23 years, 3 months ago) by doucette
Branch: MAIN
Changes since 1.1: +5 -3
lines
Surround non-user stuff with #ifdef _KERNEL so can compile right.
|
#ifndef _FS_XFS_ITABLE_H
#define _FS_XFS_ITABLE_H
#ident "$Revision$"
/*
* Structures returned from xfs_bulkstat syssgi routine.
*/
typedef struct xfs_bstat
{
ino64_t bs_ino; /* inode number */
mode_t bs_mode; /* type and mode */
nlink_t bs_nlink; /* number of links */
uid_t bs_uid; /* user id */
gid_t bs_gid; /* group id */
dev_t bs_rdev; /* device value */
__int32_t bs_blksize; /* block size */
off64_t bs_size; /* file size */
timestruc_t bs_atime; /* access time */
timestruc_t bs_mtime; /* modify time */
timestruc_t bs_ctime; /* inode change time */
__int64_t bs_blocks; /* number of blocks */
__int32_t bs_xflags; /* extended flags */
__int32_t bs_extsize; /* extent size */
__int32_t bs_nextents; /* number of extents */
uuid_t bs_uuid; /* unique id of file */
} xfs_bstat_t;
/*
* Structures returned from xfs_inumbers syssgi routine.
*/
typedef struct xfs_inogrp
{
ino64_t xi_startino; /* starting inode number */
int xi_alloccount; /* count of bits set in allocmask */
__uint64_t xi_allocmask; /* mask of allocated inodes */
} xfs_inogrp_t;
#ifdef _KERNEL
/*
* Prototypes for visible xfs_itable.c routines.
*/
/*
* Return stat information in bulk (by-inode) for the filesystem.
*/
int /* error status */
xfs_bulkstat(
xfs_mount_t *mp, /* mount point for filesystem */
xfs_trans_t *tp, /* transaction pointer */
ino64_t *lastino, /* last inode returned */
int *count, /* size of buffer/count returned */
caddr_t ubuffer); /* buffer with inode stats */
/*
* Return inode number table for the filesystem.
*/
int /* error status */
xfs_inumbers(
xfs_mount_t *mp, /* mount point for filesystem */
xfs_trans_t *tp, /* transaction pointer */
ino64_t *lastino, /* last inode returned */
int *count, /* size of buffer/count returned */
caddr_t ubuffer); /* buffer with inode descriptions */
#endif /* _KERNEL */
#endif /* !_FS_XFS_ITABLE_H */