]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Improvements for IMSM_NO_PLATFORM testing.
authorNeilBrown <neilb@suse.de>
Mon, 20 Mar 2023 03:43:54 +0000 (14:43 +1100)
committerJes Sorensen <jes@trained-monkey.org>
Mon, 20 Mar 2023 17:08:27 +0000 (13:08 -0400)
commit420dafcd38c5949c2ddb90ad6873e7edd625db30
tree7834af59ed9da285ae1598a925a66d91175690d7
parent2e10c46d0906b1a1ec40e8f5005ccb63125dcd9e
Improvements for IMSM_NO_PLATFORM testing.

Factor out IMSM_NO_PLATFORM testing into a single function that caches
the result.

Allow mdmon to explicitly set the result to "1" so that we don't need
the ENV var in the unit file

Check if the kernel command line contains "mdadm.imsm.test=1" and in
that case assert NO_PLATFORM.  This simplifies testing in a virtual
machine.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
mdadm.8.in
mdadm.h
mdmon.c
super-intel.c
systemd/mdmon@.service