diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2019-09-16 05:58:10 -0400 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2019-10-04 17:31:55 +0200 |
commit | 667b33dd3be1068ffb92783e189cbc1b41c9ac28 (patch) | |
tree | b5916e88c9137d74085514679d972c69795533f4 /device_mapper/ioctl | |
parent | ebc9274be07299e1defd332685a2dff2c5b43cdf (diff) | |
download | lvm2-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.c | 3 |
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* */ |