aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/device-mapper.h5
-rw-r--r--include/linux/dm-ioctl.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index e3d1c33d1558..d44a99650af3 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -64,6 +64,10 @@ typedef int (*dm_status_fn) (struct dm_target *ti, status_type_t status_type,
64 64
65typedef int (*dm_message_fn) (struct dm_target *ti, unsigned argc, char **argv); 65typedef int (*dm_message_fn) (struct dm_target *ti, unsigned argc, char **argv);
66 66
67typedef int (*dm_ioctl_fn) (struct dm_target *ti, struct inode *inode,
68 struct file *filp, unsigned int cmd,
69 unsigned long arg);
70
67void dm_error(const char *message); 71void dm_error(const char *message);
68 72
69/* 73/*
@@ -91,6 +95,7 @@ struct target_type {
91 dm_resume_fn resume; 95 dm_resume_fn resume;
92 dm_status_fn status; 96 dm_status_fn status;
93 dm_message_fn message; 97 dm_message_fn message;
98 dm_ioctl_fn ioctl;
94}; 99};
95 100
96struct io_restrictions { 101struct io_restrictions {
diff --git a/include/linux/dm-ioctl.h b/include/linux/dm-ioctl.h
index 9623bb625090..b349b768df35 100644
--- a/include/linux/dm-ioctl.h
+++ b/include/linux/dm-ioctl.h
@@ -285,7 +285,7 @@ typedef char ioctl_struct[308];
285#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl) 285#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
286 286
287#define DM_VERSION_MAJOR 4 287#define DM_VERSION_MAJOR 4
288#define DM_VERSION_MINOR 7 288#define DM_VERSION_MINOR 8
289#define DM_VERSION_PATCHLEVEL 0 289#define DM_VERSION_PATCHLEVEL 0
290#define DM_VERSION_EXTRA "-ioctl (2006-06-24)" 290#define DM_VERSION_EXTRA "-ioctl (2006-06-24)"
291 291