summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorPawel Piatkowski <pawel.piatkowski@intel.com>2023-10-19 16:35:24 +0200
committerJes Sorensen <jes@trained-monkey.org>2023-10-26 23:51:55 +0200
commit4dde420fc3e24077ab926f79674eaae1b71de10b (patch)
treef4430507a06a8f4c7e73078ebc831c6d6092150b /mdadm.h
parentmdadm/super1: Add MD_FEATURE_RAID0_LAYOUT if kernel>=5.4 (diff)
downloadmdadm-4dde420fc3e24077ab926f79674eaae1b71de10b.tar.xz
mdadm-4dde420fc3e24077ab926f79674eaae1b71de10b.zip
mdadm: remove container_enough logic
Arrays without enough disk count will be assembled but not started. Now RAIDs will be assembled always (even if they are failed). RAID devices in all states will be assembled and exposed to mdstat. This change affects only IMSM (for ddf it wasn't used, container_enough was set to true always). Removed this logic from incremental_container as well with runstop checking because runstop condition is being verified in assemble_container_content function. Signed-off-by: Pawel Piatkowski <pawel.piatkowski@intel.com> Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/mdadm.h b/mdadm.h
index 9effb941..b48e6f86 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -377,9 +377,6 @@ struct mdinfo {
int container_member; /* for assembling external-metatdata arrays
* This is to be used internally by metadata
* handler only */
- int container_enough; /* flag external handlers can set to
- * indicate that subarrays have not enough (-1),
- * enough to start (0), or all expected disks (1) */
char sys_name[32];
struct mdinfo *devs;
struct mdinfo *next;