]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3870861838f58610ffaaaad5665169aecb2960aa
treec68a8f38bd6994c93dceddc76d05113ca624baa1
parentebe6f8fde43cbbf377097a1cbb6bd1de82343e97
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