Go to the documentation of this file.
8 #ifndef _LINUX_DM_IOCTL_V4_H
9 #define _LINUX_DM_IOCTL_V4_H
11 #include <linux/types.h>
13 #define DM_DIR "mapper"
14 #define DM_CONTROL_NODE "control"
15 #define DM_MAX_TYPE_NAME 16
16 #define DM_NAME_LEN 128
17 #define DM_UUID_LEN 129
246 #define DM_IOCTL 0xfd
248 #define DM_VERSION _IOWR(DM_IOCTL, DM_VERSION_CMD, struct dm_ioctl)
249 #define DM_REMOVE_ALL _IOWR(DM_IOCTL, DM_REMOVE_ALL_CMD, struct dm_ioctl)
250 #define DM_LIST_DEVICES _IOWR(DM_IOCTL, DM_LIST_DEVICES_CMD, struct dm_ioctl)
252 #define DM_DEV_CREATE _IOWR(DM_IOCTL, DM_DEV_CREATE_CMD, struct dm_ioctl)
253 #define DM_DEV_REMOVE _IOWR(DM_IOCTL, DM_DEV_REMOVE_CMD, struct dm_ioctl)
254 #define DM_DEV_RENAME _IOWR(DM_IOCTL, DM_DEV_RENAME_CMD, struct dm_ioctl)
255 #define DM_DEV_SUSPEND _IOWR(DM_IOCTL, DM_DEV_SUSPEND_CMD, struct dm_ioctl)
256 #define DM_DEV_STATUS _IOWR(DM_IOCTL, DM_DEV_STATUS_CMD, struct dm_ioctl)
257 #define DM_DEV_WAIT _IOWR(DM_IOCTL, DM_DEV_WAIT_CMD, struct dm_ioctl)
259 #define DM_TABLE_LOAD _IOWR(DM_IOCTL, DM_TABLE_LOAD_CMD, struct dm_ioctl)
260 #define DM_TABLE_CLEAR _IOWR(DM_IOCTL, DM_TABLE_CLEAR_CMD, struct dm_ioctl)
261 #define DM_TABLE_DEPS _IOWR(DM_IOCTL, DM_TABLE_DEPS_CMD, struct dm_ioctl)
262 #define DM_TABLE_STATUS _IOWR(DM_IOCTL, DM_TABLE_STATUS_CMD, struct dm_ioctl)
264 #define DM_LIST_VERSIONS _IOWR(DM_IOCTL, DM_LIST_VERSIONS_CMD, struct dm_ioctl)
266 #define DM_TARGET_MSG _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, struct dm_ioctl)
267 #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
269 #define DM_VERSION_MAJOR 4
270 #define DM_VERSION_MINOR 23
271 #define DM_VERSION_PATCHLEVEL 0
272 #define DM_VERSION_EXTRA "-ioctl (2012-07-25)"
275 #define DM_READONLY_FLAG (1 << 0)
276 #define DM_SUSPEND_FLAG (1 << 1)
277 #define DM_PERSISTENT_DEV_FLAG (1 << 3)
283 #define DM_STATUS_TABLE_FLAG (1 << 4)
289 #define DM_ACTIVE_PRESENT_FLAG (1 << 5)
290 #define DM_INACTIVE_PRESENT_FLAG (1 << 6)
296 #define DM_BUFFER_FULL_FLAG (1 << 8)
301 #define DM_SKIP_BDGET_FLAG (1 << 9)
306 #define DM_SKIP_LOCKFS_FLAG (1 << 10)
313 #define DM_NOFLUSH_FLAG (1 << 11)
320 #define DM_QUERY_INACTIVE_TABLE_FLAG (1 << 12)
325 #define DM_UEVENT_GENERATED_FLAG (1 << 13)
331 #define DM_UUID_FLAG (1 << 14)
337 #define DM_SECURE_DATA_FLAG (1 << 15)