diff options
author | sandeen@sandeen.net <sandeen@sandeen.net> | 2008-11-25 22:20:15 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-02 01:17:07 -0500 |
commit | 28750975ace79c547407a84d3969cbed516be8f8 (patch) | |
tree | 79707c1e3c304ec7a11ea920cda38760d0248d5c /fs/xfs/linux-2.6/xfs_ioctl32.h | |
parent | ebeecd2b04645a4b79e1bc00d69cf4f98e03a684 (diff) |
[XFS] Hook up compat XFS_IOC_ATTRMULTI_BY_HANDLE ioctl handler
Add a compat handler for XFS_IOC_ATTRMULTI_BY_HANDLE
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_ioctl32.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_ioctl32.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.h b/fs/xfs/linux-2.6/xfs_ioctl32.h index bbf3a2cd8a7d..785e7ec318cf 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl32.h +++ b/fs/xfs/linux-2.6/xfs_ioctl32.h | |||
@@ -135,6 +135,26 @@ typedef struct compat_xfs_fsop_attrlist_handlereq { | |||
135 | #define XFS_IOC_ATTRLIST_BY_HANDLE_32 \ | 135 | #define XFS_IOC_ATTRLIST_BY_HANDLE_32 \ |
136 | _IOW('X', 122, struct compat_xfs_fsop_attrlist_handlereq) | 136 | _IOW('X', 122, struct compat_xfs_fsop_attrlist_handlereq) |
137 | 137 | ||
138 | /* am_opcodes defined in xfs_fs.h */ | ||
139 | typedef struct compat_xfs_attr_multiop { | ||
140 | __u32 am_opcode; | ||
141 | __s32 am_error; | ||
142 | compat_uptr_t am_attrname; | ||
143 | compat_uptr_t am_attrvalue; | ||
144 | __u32 am_length; | ||
145 | __u32 am_flags; | ||
146 | } compat_xfs_attr_multiop_t; | ||
147 | |||
148 | typedef struct compat_xfs_fsop_attrmulti_handlereq { | ||
149 | struct compat_xfs_fsop_handlereq hreq; /* handle interface structure */ | ||
150 | __u32 opcount;/* count of following multiop */ | ||
151 | /* ptr to compat_xfs_attr_multiop */ | ||
152 | compat_uptr_t ops; /* attr_multi data */ | ||
153 | } compat_xfs_fsop_attrmulti_handlereq_t; | ||
154 | |||
155 | #define XFS_IOC_ATTRMULTI_BY_HANDLE_32 \ | ||
156 | _IOW('X', 123, struct compat_xfs_fsop_attrmulti_handlereq) | ||
157 | |||
138 | #ifdef BROKEN_X86_ALIGNMENT | 158 | #ifdef BROKEN_X86_ALIGNMENT |
139 | /* on ia32 l_start is on a 32-bit boundary */ | 159 | /* on ia32 l_start is on a 32-bit boundary */ |
140 | typedef struct compat_xfs_flock64 { | 160 | typedef struct compat_xfs_flock64 { |