18 #ifndef __XFS_IOCTL32_H__
19 #define __XFS_IOCTL32_H__
32 #define XFS_IOC_GETXFLAGS_32 FS_IOC32_GETFLAGS
33 #define XFS_IOC_SETXFLAGS_32 FS_IOC32_SETFLAGS
34 #define XFS_IOC_GETVERSION_32 FS_IOC32_GETVERSION
39 #if defined(CONFIG_IA64) || defined(CONFIG_X86_64)
40 #define BROKEN_X86_ALIGNMENT
41 #define __compat_packed __attribute__((packed))
43 #define __compat_packed
69 #define bs_projid bs_projid_lo
84 #define XFS_IOC_FSBULKSTAT_32 \
85 _IOWR('X', 101, struct compat_xfs_fsop_bulkreq)
86 #define XFS_IOC_FSBULKSTAT_SINGLE_32 \
87 _IOWR('X', 102, struct compat_xfs_fsop_bulkreq)
88 #define XFS_IOC_FSINUMBERS_32 \
89 _IOWR('X', 103, struct compat_xfs_fsop_bulkreq)
101 #define XFS_IOC_PATH_TO_FSHANDLE_32 \
102 _IOWR('X', 104, struct compat_xfs_fsop_handlereq)
103 #define XFS_IOC_PATH_TO_HANDLE_32 \
104 _IOWR('X', 105, struct compat_xfs_fsop_handlereq)
105 #define XFS_IOC_FD_TO_HANDLE_32 \
106 _IOWR('X', 106, struct compat_xfs_fsop_handlereq)
107 #define XFS_IOC_OPEN_BY_HANDLE_32 \
108 _IOWR('X', 107, struct compat_xfs_fsop_handlereq)
109 #define XFS_IOC_READLINK_BY_HANDLE_32 \
110 _IOWR('X', 108, struct compat_xfs_fsop_handlereq)
123 #define XFS_IOC_SWAPEXT_32 _IOWR('X', 109, struct compat_xfs_swapext)
134 #define XFS_IOC_ATTRLIST_BY_HANDLE_32 \
135 _IOW('X', 122, struct compat_xfs_fsop_attrlist_handlereq)
154 #define XFS_IOC_ATTRMULTI_BY_HANDLE_32 \
155 _IOW('X', 123, struct compat_xfs_fsop_attrmulti_handlereq)
163 #define XFS_IOC_FSSETDM_BY_HANDLE_32 \
164 _IOW('X', 121, struct compat_xfs_fsop_setdm_handlereq)
166 #ifdef BROKEN_X86_ALIGNMENT
168 typedef struct compat_xfs_flock64 {
177 } compat_xfs_flock64_t;
179 #define XFS_IOC_ALLOCSP_32 _IOW('X', 10, struct compat_xfs_flock64)
180 #define XFS_IOC_FREESP_32 _IOW('X', 11, struct compat_xfs_flock64)
181 #define XFS_IOC_ALLOCSP64_32 _IOW('X', 36, struct compat_xfs_flock64)
182 #define XFS_IOC_FREESP64_32 _IOW('X', 37, struct compat_xfs_flock64)
183 #define XFS_IOC_RESVSP_32 _IOW('X', 40, struct compat_xfs_flock64)
184 #define XFS_IOC_UNRESVSP_32 _IOW('X', 41, struct compat_xfs_flock64)
185 #define XFS_IOC_RESVSP64_32 _IOW('X', 42, struct compat_xfs_flock64)
186 #define XFS_IOC_UNRESVSP64_32 _IOW('X', 43, struct compat_xfs_flock64)
187 #define XFS_IOC_ZERO_RANGE_32 _IOW('X', 57, struct compat_xfs_flock64)
189 typedef struct compat_xfs_fsop_geom_v1 {
202 unsigned char uuid[16];
212 #define XFS_IOC_FSGEOMETRY_V1_32 \
213 _IOR('X', 100, struct compat_xfs_fsop_geom_v1)
215 typedef struct compat_xfs_inogrp {
222 typedef
struct compat_xfs_growfs_data {
227 typedef
struct compat_xfs_growfs_rt {
232 #define XFS_IOC_FSGROWFSDATA_32 _IOW('X', 110, struct compat_xfs_growfs_data)
233 #define XFS_IOC_FSGROWFSRT_32 _IOW('X', 112, struct compat_xfs_growfs_rt)