]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: drive encryption policy implementation
authorBlazej Kucman <blazej.kucman@intel.com>
Fri, 22 Mar 2024 11:51:20 +0000 (12:51 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Tue, 2 Apr 2024 06:29:24 +0000 (08:29 +0200)
commitacb8f13be88c224eb1e01f72c1e1fda955bc80ba
treefa9684b70edcc21af0777cb4ec74eeede35c550e
parentbf62ed5d9642aa60abf4ac2d1d89f173bd66ae48
imsm: drive encryption policy implementation

IMSM cares about drive encryption state. It is not allowed to mix disks
with different encryption state within one md device. This policy will
verify that attempt to use disks with different encryption states will
fail. Verification is performed for devices NVMe/SATA Opal and SATA.

There is one exception, Opal SATA drives encryption is not checked when
ENCRYPTION_NO_VERIFY key with "sata_opal" value is set in conf, for this
reason such drives are treated as without encryption support.

Signed-off-by: Blazej Kucman <blazej.kucman@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
super-intel.c