diff options
author | Neil Brown <neilb@suse.de> | 2006-06-02 01:53:13 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-06-02 01:53:13 +0000 |
commit | 1d1e104b0dee92f91e6b5037661a17f48748e934 (patch) | |
tree | f091fa80e2baff2d1ae50c60a16b9709208405bc | |
parent | efd441d17b5a6cfab37b60154492aa81c24b7db2 (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |