diff options
author | Neil Brown <neilb@suse.de> | 2005-05-03 23:44:40 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-05-03 23:44:40 +0000 |
commit | 82d9eba687c952a9919f756203706285d6c42f07 (patch) | |
tree | 53d8a29cc1e532aa0f05f888cfd6603dd9f4715f /config.c | |
parent | f9ce90ba509d0b624cc38635861b9c27550fbefc (diff) | |
download | mdadm-82d9eba687c952a9919f756203706285d6c42f07.tar.gz |
super1
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Fix raid5 creation with new code.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -332,12 +332,10 @@ void arrayline(char *line) /* style of metadata on the devices. */ int i; - for(i=0; superlist[i]; i++) - if (superlist[i]->match_metadata_desc(w+9)) { - mis.ss = superlist[i]; - break; - } - if (!mis.ss) + for(i=0; superlist[i] && !mis.st; i++) + mis.st = superlist[i]->match_metadata_desc(w+9); + + if (!mis.st) fprintf(stderr, Name ": metadata format %s unknown, ignored.\n", w+9); } else if (strncasecmp(w, "auto=", 5) == 0 ) { /* whether to create device special files as needed */ |