summaryrefslogtreecommitdiff
path: root/libdm/misc
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2019-09-16 05:58:10 -0400
committerZdenek Kabelac <zkabelac@redhat.com>2019-10-04 17:31:55 +0200
commit667b33dd3be1068ffb92783e189cbc1b41c9ac28 (patch)
treeb5916e88c9137d74085514679d972c69795533f4 /libdm/misc
parentebc9274be07299e1defd332685a2dff2c5b43cdf (diff)
downloadlvm2-667b33dd3be1068ffb92783e189cbc1b41c9ac28.tar.gz
dm: introduce DM_GET_TARGET_VERSION
Adds support for the DM_GET_TARGET_VERSION to dmsetup. It introduces a new comman "target-version" that will accept list of targets and print their version. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Diffstat (limited to 'libdm/misc')
-rw-r--r--libdm/misc/dm-ioctl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdm/misc/dm-ioctl.h b/libdm/misc/dm-ioctl.h
index 79f574cd9..52a7a93d1 100644
--- a/libdm/misc/dm-ioctl.h
+++ b/libdm/misc/dm-ioctl.h
@@ -244,6 +244,7 @@ enum {
DM_TARGET_MSG_CMD,
DM_DEV_SET_GEOMETRY_CMD,
DM_DEV_ARM_POLL_CMD,
+ DM_GET_TARGET_VERSION_CMD,
};
#define DM_IOCTL 0xfd
@@ -269,6 +270,7 @@ enum {
#define DM_TARGET_MSG _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, struct dm_ioctl)
#define DM_DEV_SET_GEOMETRY _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
+#define DM_GET_TARGET_VERSION _IOWR(DM_IOCTL, DM_GET_TARGET_VERSION_CMD, struct dm_ioctl)
#define DM_VERSION_MAJOR 4
#define DM_VERSION_MINOR 36