History

dm: introduce DM_GET_TARGET_VERSION

This commit introduces a new ioctl DM_GET_TARGET_VERSION. It will load a target that is specified in the "name" entry in the parameter structure and return its version. This functionality is intended to be used by cryptsetup, so that it can query kernel capabilities before activating the device.

Mikulas Patocka committed 7 years ago

Commit afa179e1 parent 6e913b22 files · +33 −5Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/dm-ioctl.h+4−2
@@ -243,6 +243,7 @@ enum { · 242 unmodified lines
243243 DM_TARGET_MSG_CMD,
244244 DM_DEV_SET_GEOMETRY_CMD,
245245 DM_DEV_ARM_POLL_CMD,
246+ DM_GET_TARGET_VERSION_CMD,
246247 };
247248
248249 #define DM_IOCTL 0xfd
@@ -265,14 +266,15 @@ enum { · 16 unmodified lines
265266 #define DM_TABLE_STATUS _IOWR(DM_IOCTL, DM_TABLE_STATUS_CMD, struct dm_ioctl)
266267
267268 #define DM_LIST_VERSIONS _IOWR(DM_IOCTL, DM_LIST_VERSIONS_CMD, struct dm_ioctl)
269+#define DM_GET_TARGET_VERSION _IOWR(DM_IOCTL, DM_GET_TARGET_VERSION_CMD, struct dm_ioctl)
268270
269271 #define DM_TARGET_MSG _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, struct dm_ioctl)
270272 #define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
271273
272274 #define DM_VERSION_MAJOR 4
273−#define DM_VERSION_MINOR 40
275+#define DM_VERSION_MINOR 41
274276 #define DM_VERSION_PATCHLEVEL 0
275−#define DM_VERSION_EXTRA "-ioctl (2019-01-18)"
277+#define DM_VERSION_EXTRA "-ioctl (2019-09-16)"
276278
277279 /* Status bits */
278280 #define DM_READONLY_FLAG (1 << 0) /* In/Out */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t