diff options
author | NeilBrown <neilb@suse.de> | 2023-03-20 04:43:54 +0100 |
---|---|---|
committer | Jes Sorensen <jes@trained-monkey.org> | 2023-03-20 18:08:27 +0100 |
commit | 420dafcd38c5949c2ddb90ad6873e7edd625db30 (patch) | |
tree | 7834af59ed9da285ae1598a925a66d91175690d7 /mdadm.h | |
parent | mdopen: always try create_named_array() (diff) | |
download | mdadm-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |