summaryrefslogtreecommitdiffstats
path: root/mdassemble.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2004-11-01 05:49:34 +0100
committerNeil Brown <neilb@suse.de>2004-11-01 05:49:34 +0100
commitb5e64645037e99b5f05c9499b27b422ae60d23a9 (patch)
treef0999c8649d1488a367ee3d9442aff538ae366a8 /mdassemble.c
parentmdadm-1.7.0 (diff)
downloadmdadm-b5e64645037e99b5f05c9499b27b422ae60d23a9.tar.xz
mdadm-b5e64645037e99b5f05c9499b27b422ae60d23a9.zip
mdadm-1.8.0mdadm-1.8.0
Diffstat (limited to 'mdassemble.c')
-rw-r--r--mdassemble.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/mdassemble.c b/mdassemble.c
index 55055dd1..43aed3c8 100644
--- a/mdassemble.c
+++ b/mdassemble.c
@@ -46,11 +46,16 @@ mapping_t pers[] = {
{ "5", 5},
{ "multipath", -4},
{ "mp", -4},
+ { "raid6", 6},
+ { "6", 6},
+ { "raid10", 10},
+ { "10", 10},
{ NULL, 0}
};
+#ifndef MDASSEMBLE_AUTO
/* from mdadm.c */
-int open_mddev(char *dev)
+int open_mddev(char *dev, int autof/*unused */)
{
int mdfd = open(dev, O_RDWR, 0);
if (mdfd < 0)
@@ -64,6 +69,7 @@ int open_mddev(char *dev)
}
return mdfd;
}
+#endif
char *configfile = NULL;
int rv;
@@ -81,7 +87,7 @@ int main() {
} else
for (; array_list; array_list = array_list->next) {
mdu_array_info_t array;
- mdfd = open_mddev(array_list->devname);
+ mdfd = open_mddev(array_list->devname, array_list->autof);
if (mdfd < 0) {
rv |= 1;
continue;