The purpose of this series is to add functionality of reading information about the encryption status of OPAL NVMe/SATA and SATA drives and use this information for purposes of IMSM metadata, which introduces restrictions on the possibility of mixing disks with encryption enabled and disabled because of security reasons. Changes in V2: - add separate patch for change location of pr_vrb(), - add example results for usage of new feature to commit message in patch 5, - adjust commit messages to 75 characters, - general fixes after review. Blazej Kucman (6): mdadm: Move pr_vrb define to mdadm.h Add reading Opal NVMe encryption information Add reading SATA encryption information Add key ENCRYPTION_NO_VERIFY to conf imsm: print disk encryption information imsm: drive encryption policy implementation Makefile | 4 +- config.c | 25 +- drive_encryption.c | 724 +++++++++++++++++++++++++++++++++++++++++++++ drive_encryption.h | 37 +++ mdadm.conf.5.in | 16 + mdadm.h | 4 + super-intel.c | 117 +++++++- sysfs.c | 29 ++ 8 files changed, 947 insertions(+), 9 deletions(-) create mode 100644 drive_encryption.c create mode 100644 drive_encryption.h -- 2.35.3