diff options
author | sandeen@sandeen.net <sandeen@sandeen.net> | 2008-11-25 22:20:10 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-02 01:15:09 -0500 |
commit | 471d59103167c84f17b9bcfee22ed10b44ff206e (patch) | |
tree | cca786d598f2d4c12f50ea6d8fbc6bdb057eeec1 /fs/xfs/linux-2.6/xfs_ioctl32.h | |
parent | e94fc4a43e5c39f689e83caf6d2f0939081f5e6b (diff) |
[XFS] Add compat handlers for data & rt growfs ioctls
The args for XFS_IOC_FSGROWFSDATA and XFS_IOC_FSGROWFSRTA
have padding on the end on intel, so add arg copyin functions,
and then just call the growfs ioctl helpers.
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 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_ioctl32.h b/fs/xfs/linux-2.6/xfs_ioctl32.h index bf08ab12a6f8..8b2a12a8e96f 100644 --- a/fs/xfs/linux-2.6/xfs_ioctl32.h +++ b/fs/xfs/linux-2.6/xfs_ioctl32.h | |||
@@ -177,6 +177,20 @@ typedef struct compat_xfs_inogrp { | |||
177 | __u64 xi_allocmask; /* mask of allocated inodes */ | 177 | __u64 xi_allocmask; /* mask of allocated inodes */ |
178 | } __attribute__((packed)) compat_xfs_inogrp_t; | 178 | } __attribute__((packed)) compat_xfs_inogrp_t; |
179 | 179 | ||
180 | /* These growfs input structures have padding on the end, so must translate */ | ||
181 | typedef struct compat_xfs_growfs_data { | ||
182 | __u64 newblocks; /* new data subvol size, fsblocks */ | ||
183 | __u32 imaxpct; /* new inode space percentage limit */ | ||
184 | } __attribute__((packed)) compat_xfs_growfs_data_t; | ||
185 | |||
186 | typedef struct compat_xfs_growfs_rt { | ||
187 | __u64 newblocks; /* new realtime size, fsblocks */ | ||
188 | __u32 extsize; /* new realtime extent size, fsblocks */ | ||
189 | } __attribute__((packed)) compat_xfs_growfs_rt_t; | ||
190 | |||
191 | #define XFS_IOC_FSGROWFSDATA_32 _IOW('X', 110, struct compat_xfs_growfs_data) | ||
192 | #define XFS_IOC_FSGROWFSRT_32 _IOW('X', 112, struct compat_xfs_growfs_rt) | ||
193 | |||
180 | #endif /* BROKEN_X86_ALIGNMENT */ | 194 | #endif /* BROKEN_X86_ALIGNMENT */ |
181 | 195 | ||
182 | #endif /* __XFS_IOCTL32_H__ */ | 196 | #endif /* __XFS_IOCTL32_H__ */ |