summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2023-03-20 04:43:54 +0100
committerJes Sorensen <jes@trained-monkey.org>2023-03-20 18:08:27 +0100
commit420dafcd38c5949c2ddb90ad6873e7edd625db30 (patch)
tree7834af59ed9da285ae1598a925a66d91175690d7 /mdadm.h
parentmdopen: always try create_named_array() (diff)
downloadmdadm-420dafcd38c5949c2ddb90ad6873e7edd625db30.tar.xz
mdadm-420dafcd38c5949c2ddb90ad6873e7edd625db30.zip
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>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 1e518276..0d995445 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -1263,6 +1263,8 @@ extern struct superswitch super0, super1;
extern struct superswitch super_imsm, super_ddf;
extern struct superswitch mbr, gpt;
+void imsm_set_no_platform(int v);
+
struct metadata_update {
int len;
char *buf;