]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: fix tpv drvies check in add_to_super
authorBlazej Kucman <blazej.kucman@intel.com>
Wed, 20 Nov 2024 15:50:25 +0000 (16:50 +0100)
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Wed, 27 Nov 2024 08:10:53 +0000 (09:10 +0100)
commit8032700b7a44df2dd54af478940938958c08dcf0
treee60dac8417cbe1a6747f43d65c38fcf7d92a510b
parenteb24054faa67750a37e29037cb0ab9cbfdf0174c
imsm: fix tpv drvies check in add_to_super

Before the mentioned patch, the check to verify if IMSM on current
platform supports a use of TPV (other than Intel) disk, was only performed
for non-Intel disks, after it is performed for all. This change causes
inability to use any disk when platform does not support TPV drives,
attempt results in the following error.

mdadm:  Platform configuration does not support non-Intel NVMe drives.
        Please refer to Intel(R) RSTe/VROC user guide.

This change restores the check if the disk is non-Intel.

Fixes: 734e7db4dfc5 ("imsm: Remove warning and refactor add_to_super_imsm code")
Signed-off-by: Blazej Kucman <blazej.kucman@intel.com>
super-intel.c