summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-06-02 01:53:13 +0000
committerNeil Brown <neilb@suse.de>2006-06-02 01:53:13 +0000
commit1d1e104b0dee92f91e6b5037661a17f48748e934 (patch)
treef091fa80e2baff2d1ae50c60a16b9709208405bc
parentefd441d17b5a6cfab37b60154492aa81c24b7db2 (diff)
downloadmdadm-1d1e104b0dee92f91e6b5037661a17f48748e934.tar.gz
mdadm-1d1e104b0dee92f91e6b5037661a17f48748e934.tar.xz
mdadm-1d1e104b0dee92f91e6b5037661a17f48748e934.zip
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>
-rw-r--r--mdadm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdadm.c b/mdadm.c
index f37797a..2583ee2 100644
--- 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)