diff options
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 9 |
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; |