Don't try to create a new device when using --manage or --grow
... as that's just silly! Signed-off-by: Neil Brown <neilb@suse.de>
This commit is contained in:
parent
efd441d17b
commit
1d1e104b0d
2
mdadm.c
2
mdadm.c
|
@ -877,7 +877,7 @@ int main(int argc, char *argv[])
|
|||
fprintf(stderr, Name ": --super-minor=dev is incompatible with --auto\n");
|
||||
exit(2);
|
||||
}
|
||||
if (mode == MANAGE && runstop < 0)
|
||||
if (mode == MANAGE || mode == GROW)
|
||||
autof=1; /* Don't create */
|
||||
mdfd = open_mddev(devlist->devname, autof);
|
||||
if (mdfd < 0)
|
||||
|
|
Loading…
Reference in New Issue