summaryrefslogtreecommitdiffstats
path: root/Incremental.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-21 17:13:39 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-02-21 17:13:47 +0000
commit84c33dd6d41c5b45288ca4059b781fe6fbd5bbad (patch)
treee6cedad652076622be8aade2f08416975c7d84a4 /Incremental.c
parentReleasing debian version 4.2+20240118-1. (diff)
downloadmdadm-84c33dd6d41c5b45288ca4059b781fe6fbd5bbad.tar.xz
mdadm-84c33dd6d41c5b45288ca4059b781fe6fbd5bbad.zip
Merging upstream version 4.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Incremental.c')
-rw-r--r--Incremental.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Incremental.c b/Incremental.c
index 6cbc164..30c07c0 100644
--- a/Incremental.c
+++ b/Incremental.c
@@ -1467,6 +1467,15 @@ static int Incremental_container(struct supertype *st, char *devname,
st->ss->getinfo_super(st, &info, NULL);
+ if (info.container_enough < 0 || (info.container_enough == 0 && c->runstop < 1)) {
+ if (c->export)
+ printf("MD_STARTED=no\n");
+ else if (c->verbose)
+ pr_err("Not enough devices to start the container.\n");
+
+ return 0;
+ }
+
match = conf_match(st, &info, devname, c->verbose, &rv);
if (match == NULL && rv == 2)
return rv;