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:
Neil Brown 2006-06-02 01:53:13 +00:00
parent efd441d17b
commit 1d1e104b0d
1 changed files with 1 additions and 1 deletions

View File

@ -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)