|
#define | XFS_XFLAG_REALTIME 0x00000001 /* data in realtime volume */ |
|
#define | XFS_XFLAG_PREALLOC 0x00000002 /* preallocated file extents */ |
|
#define | XFS_XFLAG_IMMUTABLE 0x00000008 /* file cannot be modified */ |
|
#define | XFS_XFLAG_APPEND 0x00000010 /* all writes append */ |
|
#define | XFS_XFLAG_SYNC 0x00000020 /* all writes synchronous */ |
|
#define | XFS_XFLAG_NOATIME 0x00000040 /* do not update access time */ |
|
#define | XFS_XFLAG_NODUMP 0x00000080 /* do not include in backups */ |
|
#define | XFS_XFLAG_RTINHERIT 0x00000100 /* create with rt bit set */ |
|
#define | XFS_XFLAG_PROJINHERIT 0x00000200 /* create with parents projid */ |
|
#define | XFS_XFLAG_NOSYMLINKS 0x00000400 /* disallow symlink creation */ |
|
#define | XFS_XFLAG_EXTSIZE 0x00000800 /* extent size allocator hint */ |
|
#define | XFS_XFLAG_EXTSZINHERIT 0x00001000 /* inherit inode extent size */ |
|
#define | XFS_XFLAG_NODEFRAG 0x00002000 /* do not defragment */ |
|
#define | XFS_XFLAG_FILESTREAM 0x00004000 /* use filestream allocator */ |
|
#define | XFS_XFLAG_HASATTR 0x80000000 /* no DIFLAG for this */ |
|
#define | BMV_IF_ATTRFORK 0x1 /* return attr fork rather than data */ |
|
#define | BMV_IF_NO_DMAPI_READ 0x2 /* Do not generate DMAPI read event */ |
|
#define | BMV_IF_PREALLOC 0x4 /* rtn status BMV_OF_PREALLOC if req */ |
|
#define | BMV_IF_DELALLOC 0x8 /* rtn status BMV_OF_DELALLOC if req */ |
|
#define | BMV_IF_NO_HOLES 0x10 /* Do not return holes */ |
|
#define | BMV_IF_VALID |
|
#define | BMV_OF_PREALLOC 0x1 /* segment = unwritten pre-allocation */ |
|
#define | BMV_OF_DELALLOC 0x2 /* segment = delayed allocation */ |
|
#define | BMV_OF_LAST 0x4 /* segment is the last in the file */ |
|
#define | XFS_FSOP_GEOM_VERSION 0 |
|
#define | XFS_FSOP_GEOM_FLAGS_ATTR 0x0001 /* attributes in use */ |
|
#define | XFS_FSOP_GEOM_FLAGS_NLINK 0x0002 /* 32-bit nlink values */ |
|
#define | XFS_FSOP_GEOM_FLAGS_QUOTA 0x0004 /* quotas enabled */ |
|
#define | XFS_FSOP_GEOM_FLAGS_IALIGN 0x0008 /* inode alignment */ |
|
#define | XFS_FSOP_GEOM_FLAGS_DALIGN 0x0010 /* large data alignment */ |
|
#define | XFS_FSOP_GEOM_FLAGS_SHARED 0x0020 /* read-only shared */ |
|
#define | XFS_FSOP_GEOM_FLAGS_EXTFLG 0x0040 /* special extent flag */ |
|
#define | XFS_FSOP_GEOM_FLAGS_DIRV2 0x0080 /* directory version 2 */ |
|
#define | XFS_FSOP_GEOM_FLAGS_LOGV2 0x0100 /* log format version 2 */ |
|
#define | XFS_FSOP_GEOM_FLAGS_SECTOR 0x0200 /* sector sizes >1BB */ |
|
#define | XFS_FSOP_GEOM_FLAGS_ATTR2 0x0400 /* inline attributes rework */ |
|
#define | XFS_FSOP_GEOM_FLAGS_DIRV2CI 0x1000 /* ASCII only CI names */ |
|
#define | XFS_FSOP_GEOM_FLAGS_LAZYSB 0x4000 /* lazy superblock counters */ |
|
#define | XFS_MIN_AG_BLOCKS 64 |
|
#define | XFS_MIN_LOG_BLOCKS 512ULL |
|
#define | XFS_MAX_LOG_BLOCKS (1024 * 1024ULL) |
|
#define | XFS_MIN_LOG_BYTES (10 * 1024 * 1024ULL) |
|
#define | XFS_MAX_LOG_BYTES ((2 * 1024 * 1024 * 1024ULL) - XFS_MIN_LOG_BYTES) |
|
#define | XFS_MAX_DBLOCKS(s) ((xfs_drfsbno_t)(s)->sb_agcount * (s)->sb_agblocks) |
|
#define | XFS_MIN_DBLOCKS(s) |
|
#define | bs_projid bs_projid_lo /* (previously just bs_projid) */ |
|
#define | ATTR_OP_GET 1 /* return the indicated attr's value */ |
|
#define | ATTR_OP_SET 2 /* set/create the indicated attr/value pair */ |
|
#define | ATTR_OP_REMOVE 3 /* remove the indicated attr */ |
|
#define | ha_fsid ha_u._ha_fsid |
|
#define | XFS_HSIZE(handle) |
|
#define | XFS_FSOP_GOING_FLAGS_DEFAULT 0x0 /* going down */ |
|
#define | XFS_FSOP_GOING_FLAGS_LOGFLUSH 0x1 /* flush log but not data */ |
|
#define | XFS_FSOP_GOING_FLAGS_NOLOGFLUSH 0x2 /* don't flush log nor data */ |
|
#define | XFS_IOC_GETXFLAGS FS_IOC_GETFLAGS |
|
#define | XFS_IOC_SETXFLAGS FS_IOC_SETFLAGS |
|
#define | XFS_IOC_GETVERSION FS_IOC_GETVERSION |
|
#define | XFS_IOC_ALLOCSP _IOW ('X', 10, struct xfs_flock64) |
|
#define | XFS_IOC_FREESP _IOW ('X', 11, struct xfs_flock64) |
|
#define | XFS_IOC_DIOINFO _IOR ('X', 30, struct dioattr) |
|
#define | XFS_IOC_FSGETXATTR _IOR ('X', 31, struct fsxattr) |
|
#define | XFS_IOC_FSSETXATTR _IOW ('X', 32, struct fsxattr) |
|
#define | XFS_IOC_ALLOCSP64 _IOW ('X', 36, struct xfs_flock64) |
|
#define | XFS_IOC_FREESP64 _IOW ('X', 37, struct xfs_flock64) |
|
#define | XFS_IOC_GETBMAP _IOWR('X', 38, struct getbmap) |
|
#define | XFS_IOC_FSSETDM _IOW ('X', 39, struct fsdmidata) |
|
#define | XFS_IOC_RESVSP _IOW ('X', 40, struct xfs_flock64) |
|
#define | XFS_IOC_UNRESVSP _IOW ('X', 41, struct xfs_flock64) |
|
#define | XFS_IOC_RESVSP64 _IOW ('X', 42, struct xfs_flock64) |
|
#define | XFS_IOC_UNRESVSP64 _IOW ('X', 43, struct xfs_flock64) |
|
#define | XFS_IOC_GETBMAPA _IOWR('X', 44, struct getbmap) |
|
#define | XFS_IOC_FSGETXATTRA _IOR ('X', 45, struct fsxattr) |
|
#define | XFS_IOC_GETBMAPX _IOWR('X', 56, struct getbmap) |
|
#define | XFS_IOC_ZERO_RANGE _IOW ('X', 57, struct xfs_flock64) |
|
#define | XFS_IOC_FSGEOMETRY_V1 _IOR ('X', 100, struct xfs_fsop_geom_v1) |
|
#define | XFS_IOC_FSBULKSTAT _IOWR('X', 101, struct xfs_fsop_bulkreq) |
|
#define | XFS_IOC_FSBULKSTAT_SINGLE _IOWR('X', 102, struct xfs_fsop_bulkreq) |
|
#define | XFS_IOC_FSINUMBERS _IOWR('X', 103, struct xfs_fsop_bulkreq) |
|
#define | XFS_IOC_PATH_TO_FSHANDLE _IOWR('X', 104, struct xfs_fsop_handlereq) |
|
#define | XFS_IOC_PATH_TO_HANDLE _IOWR('X', 105, struct xfs_fsop_handlereq) |
|
#define | XFS_IOC_FD_TO_HANDLE _IOWR('X', 106, struct xfs_fsop_handlereq) |
|
#define | XFS_IOC_OPEN_BY_HANDLE _IOWR('X', 107, struct xfs_fsop_handlereq) |
|
#define | XFS_IOC_READLINK_BY_HANDLE _IOWR('X', 108, struct xfs_fsop_handlereq) |
|
#define | XFS_IOC_SWAPEXT _IOWR('X', 109, struct xfs_swapext) |
|
#define | XFS_IOC_FSGROWFSDATA _IOW ('X', 110, struct xfs_growfs_data) |
|
#define | XFS_IOC_FSGROWFSLOG _IOW ('X', 111, struct xfs_growfs_log) |
|
#define | XFS_IOC_FSGROWFSRT _IOW ('X', 112, struct xfs_growfs_rt) |
|
#define | XFS_IOC_FSCOUNTS _IOR ('X', 113, struct xfs_fsop_counts) |
|
#define | XFS_IOC_SET_RESBLKS _IOWR('X', 114, struct xfs_fsop_resblks) |
|
#define | XFS_IOC_GET_RESBLKS _IOR ('X', 115, struct xfs_fsop_resblks) |
|
#define | XFS_IOC_ERROR_INJECTION _IOW ('X', 116, struct xfs_error_injection) |
|
#define | XFS_IOC_ERROR_CLEARALL _IOW ('X', 117, struct xfs_error_injection) |
|
#define | XFS_IOC_FSSETDM_BY_HANDLE _IOW ('X', 121, struct xfs_fsop_setdm_handlereq) |
|
#define | XFS_IOC_ATTRLIST_BY_HANDLE _IOW ('X', 122, struct xfs_fsop_attrlist_handlereq) |
|
#define | XFS_IOC_ATTRMULTI_BY_HANDLE _IOW ('X', 123, struct xfs_fsop_attrmulti_handlereq) |
|
#define | XFS_IOC_FSGEOMETRY _IOR ('X', 124, struct xfs_fsop_geom) |
|
#define | XFS_IOC_GOINGDOWN _IOR ('X', 125, __uint32_t) |
|
#define | BBSHIFT 9 |
|
#define | BBSIZE (1<<BBSHIFT) |
|
#define | BBMASK (BBSIZE-1) |
|
#define | BTOBB(bytes) (((__u64)(bytes) + BBSIZE - 1) >> BBSHIFT) |
|
#define | BTOBBT(bytes) ((__u64)(bytes) >> BBSHIFT) |
|
#define | BBTOB(bbs) ((bbs) << BBSHIFT) |
|