diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 22:30:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 22:30:50 -0500 |
commit | a4ffc0a0b240a29cbe489f6db9dae112a49ef1c1 (patch) | |
tree | 9719c706444f4b720aff2bb4bdf23a4be3f4b1e3 /include | |
parent | d7511ec8115487ccea2ce93bf58d5e5cd2c1c0a3 (diff) | |
parent | af195ac82e38ba802fd86b5a014ed05ef6dd88bb (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm
* git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm: (44 commits)
dm raid1: report fault status
dm raid1: handle read failures
dm raid1: fix EIO after log failure
dm raid1: handle recovery failures
dm raid1: handle write failures
dm snapshot: combine consecutive exceptions in memory
dm: stripe enhanced status return
dm: stripe trigger event on failure
dm log: auto load modules
dm: move deferred bio flushing to workqueue
dm crypt: use async crypto
dm crypt: prepare async callback fn
dm crypt: add completion for async
dm crypt: add async request mempool
dm crypt: extract scatterlist processing
dm crypt: tidy io ref counting
dm crypt: introduce crypt_write_io_loop
dm crypt: abstract crypt_write_done
dm crypt: store sector mapping in dm_crypt_io
dm crypt: move queue functions
...
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/device-mapper.h | 18 | ||||
-rw-r--r-- | include/linux/dm-ioctl.h | 34 |
2 files changed, 11 insertions, 41 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index e765e191663d..cb784579956b 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h | |||
@@ -110,15 +110,15 @@ struct target_type { | |||
110 | }; | 110 | }; |
111 | 111 | ||
112 | struct io_restrictions { | 112 | struct io_restrictions { |
113 | unsigned int max_sectors; | 113 | unsigned long bounce_pfn; |
114 | unsigned short max_phys_segments; | 114 | unsigned long seg_boundary_mask; |
115 | unsigned short max_hw_segments; | 115 | unsigned max_hw_sectors; |
116 | unsigned short hardsect_size; | 116 | unsigned max_sectors; |
117 | unsigned int max_segment_size; | 117 | unsigned max_segment_size; |
118 | unsigned int max_hw_sectors; | 118 | unsigned short hardsect_size; |
119 | unsigned long seg_boundary_mask; | 119 | unsigned short max_hw_segments; |
120 | unsigned long bounce_pfn; | 120 | unsigned short max_phys_segments; |
121 | unsigned char no_cluster; /* inverted so that 0 is default */ | 121 | unsigned char no_cluster; /* inverted so that 0 is default */ |
122 | }; | 122 | }; |
123 | 123 | ||
124 | struct dm_target { | 124 | struct dm_target { |
diff --git a/include/linux/dm-ioctl.h b/include/linux/dm-ioctl.h index 523281c5b7f5..b03c41bbfa14 100644 --- a/include/linux/dm-ioctl.h +++ b/include/linux/dm-ioctl.h | |||
@@ -232,36 +232,6 @@ enum { | |||
232 | DM_DEV_SET_GEOMETRY_CMD | 232 | DM_DEV_SET_GEOMETRY_CMD |
233 | }; | 233 | }; |
234 | 234 | ||
235 | /* | ||
236 | * The dm_ioctl struct passed into the ioctl is just the header | ||
237 | * on a larger chunk of memory. On x86-64 and other | ||
238 | * architectures the dm-ioctl struct will be padded to an 8 byte | ||
239 | * boundary so the size will be different, which would change the | ||
240 | * ioctl code - yes I really messed up. This hack forces these | ||
241 | * architectures to have the correct ioctl code. | ||
242 | */ | ||
243 | #ifdef CONFIG_COMPAT | ||
244 | typedef char ioctl_struct[308]; | ||
245 | #define DM_VERSION_32 _IOWR(DM_IOCTL, DM_VERSION_CMD, ioctl_struct) | ||
246 | #define DM_REMOVE_ALL_32 _IOWR(DM_IOCTL, DM_REMOVE_ALL_CMD, ioctl_struct) | ||
247 | #define DM_LIST_DEVICES_32 _IOWR(DM_IOCTL, DM_LIST_DEVICES_CMD, ioctl_struct) | ||
248 | |||
249 | #define DM_DEV_CREATE_32 _IOWR(DM_IOCTL, DM_DEV_CREATE_CMD, ioctl_struct) | ||
250 | #define DM_DEV_REMOVE_32 _IOWR(DM_IOCTL, DM_DEV_REMOVE_CMD, ioctl_struct) | ||
251 | #define DM_DEV_RENAME_32 _IOWR(DM_IOCTL, DM_DEV_RENAME_CMD, ioctl_struct) | ||
252 | #define DM_DEV_SUSPEND_32 _IOWR(DM_IOCTL, DM_DEV_SUSPEND_CMD, ioctl_struct) | ||
253 | #define DM_DEV_STATUS_32 _IOWR(DM_IOCTL, DM_DEV_STATUS_CMD, ioctl_struct) | ||
254 | #define DM_DEV_WAIT_32 _IOWR(DM_IOCTL, DM_DEV_WAIT_CMD, ioctl_struct) | ||
255 | |||
256 | #define DM_TABLE_LOAD_32 _IOWR(DM_IOCTL, DM_TABLE_LOAD_CMD, ioctl_struct) | ||
257 | #define DM_TABLE_CLEAR_32 _IOWR(DM_IOCTL, DM_TABLE_CLEAR_CMD, ioctl_struct) | ||
258 | #define DM_TABLE_DEPS_32 _IOWR(DM_IOCTL, DM_TABLE_DEPS_CMD, ioctl_struct) | ||
259 | #define DM_TABLE_STATUS_32 _IOWR(DM_IOCTL, DM_TABLE_STATUS_CMD, ioctl_struct) | ||
260 | #define DM_LIST_VERSIONS_32 _IOWR(DM_IOCTL, DM_LIST_VERSIONS_CMD, ioctl_struct) | ||
261 | #define DM_TARGET_MSG_32 _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, ioctl_struct) | ||
262 | #define DM_DEV_SET_GEOMETRY_32 _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, ioctl_struct) | ||
263 | #endif | ||
264 | |||
265 | #define DM_IOCTL 0xfd | 235 | #define DM_IOCTL 0xfd |
266 | 236 | ||
267 | #define DM_VERSION _IOWR(DM_IOCTL, DM_VERSION_CMD, struct dm_ioctl) | 237 | #define DM_VERSION _IOWR(DM_IOCTL, DM_VERSION_CMD, struct dm_ioctl) |
@@ -286,9 +256,9 @@ typedef char ioctl_struct[308]; | |||
286 | #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) | 256 | #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) |
287 | 257 | ||
288 | #define DM_VERSION_MAJOR 4 | 258 | #define DM_VERSION_MAJOR 4 |
289 | #define DM_VERSION_MINOR 12 | 259 | #define DM_VERSION_MINOR 13 |
290 | #define DM_VERSION_PATCHLEVEL 0 | 260 | #define DM_VERSION_PATCHLEVEL 0 |
291 | #define DM_VERSION_EXTRA "-ioctl (2007-10-02)" | 261 | #define DM_VERSION_EXTRA "-ioctl (2007-10-18)" |
292 | 262 | ||
293 | /* Status bits */ | 263 | /* Status bits */ |
294 | #define DM_READONLY_FLAG (1 << 0) /* In/Out */ | 264 | #define DM_READONLY_FLAG (1 << 0) /* In/Out */ |