mdadm/mdadm-3.1.1-imsm.patch
Doug Ledford 877588c610 - Newer version of imsm patch that leaves warning, but only when there
actually are too many devices on the command line (bz554974)
2010-02-23 14:53:10 +00:00

14 lines
441 B
Diff

diff --git a/Assemble.c b/Assemble.c
index e4d6181..23cc438 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -434,7 +434,7 @@ int Assemble(struct supertype *st, char *mddev,
}
}
st = tst; tst = NULL;
- if (!auto_assem && tmpdev->next != NULL) {
+ if (!auto_assem && inargv && tmpdev->next != NULL) {
fprintf(stderr, Name ": %s is a container, but is not "
"only device given: confused and aborting\n",
devname);