summaryrefslogtreecommitdiff
path: root/device_mapper/ioctl
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 /device_mapper/ioctl
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 'device_mapper/ioctl')
-rw-r--r--device_mapper/ioctl/libdm-iface.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/device_mapper/ioctl/libdm-iface.c b/device_mapper/ioctl/libdm-iface.c
index d33342661..fe04af8bf 100644
--- a/device_mapper/ioctl/libdm-iface.c
+++ b/device_mapper/ioctl/libdm-iface.c
@@ -119,6 +119,9 @@ static struct cmd_data _cmd_data_v4[] = {
#ifdef DM_DEV_ARM_POLL
{"armpoll", DM_DEV_ARM_POLL, {4, 36, 0}},
#endif
+#ifdef DM_GET_TARGET_VERSION
+ {"target-version", DM_GET_TARGET_VERSION, {4, 41, 0}},
+#endif
};
/* *INDENT-ON* */