]> 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)
commitd87ab3fa113b71c231deb7e9b8a7950f38b9b799
treec68a8f38bd6994c93dceddc76d05113ca624baa1
parent756c425cdfcfd0d8f5eccdf44866c3c9391eb1c3
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