dm: introduce DM_GET_TARGET_VERSION
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 16 Sep 2019 09:55:42 +0000 (05:55 -0400)
committerMike Snitzer <snitzer@redhat.com>
Mon, 16 Sep 2019 14:18:01 +0000 (10:18 -0400)
commitafa179eb603847494aa5061d4f501224a30dd187
treec68a8f38bd6994c93dceddc76d05113ca624baa1
parent6e913b28cd279212c4580dbd8b2cf9dcd4740cfb
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.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ioctl.c
include/uapi/linux/dm-ioctl.h