]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Don't try to create a new device when using --manage or --grow
authorNeil Brown <neilb@suse.de>
Fri, 2 Jun 2006 01:53:13 +0000 (01:53 +0000)
committerNeil Brown <neilb@suse.de>
Fri, 2 Jun 2006 01:53:13 +0000 (01:53 +0000)
... as that's just silly!

Signed-off-by: Neil Brown <neilb@suse.de>
mdadm.c

diff --git a/mdadm.c b/mdadm.c
index f37797a92134e4bb8744320678652cff41c982b7..2583ee2959cfe4924446ad00acc764f7cdad23e3 100644 (file)
--- a/mdadm.c
+++ b/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)