From 84c33dd6d41c5b45288ca4059b781fe6fbd5bbad Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 21 Feb 2024 18:13:39 +0100 Subject: Merging upstream version 4.3. Signed-off-by: Daniel Baumann --- Incremental.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Incremental.c') 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; -- cgit v1.2.3