Otherwise autoassembly can get confused.
Signed-off-by: NeilBrown <neilb@suse.de>
else if (errno == EEXIST)
preexist++;
if (working == 0)
- /* Nothing new, don't try to start */ ;
+ return 1;/* Nothing new, don't try to start */
else if (runstop > 0 ||
(working + preexist) >= content->array.working_disks) {
fprintf(stderr, "\n");
}
wait_for(chosen_name);
+ return 0;
/* FIXME should have an O_EXCL and wait for read-auto */
- } else
+ } else {
if (verbose >= 0)
fprintf(stderr, Name
": %s assembled with %d devices but "
"not started\n",
chosen_name, working);
-
- return 0;
+ return 1;
+ }
}
#endif