summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index abb72c1..eef3248 100644
--- a/config.c
+++ b/config.c
@@ -29,6 +29,7 @@
#include "mdadm.h"
#include "dlink.h"
+#include <sys/dir.h>
#include <glob.h>
#include <fnmatch.h>
@@ -285,6 +286,9 @@ void arrayline(char *line)
} else if (strncasecmp(w, "disks=", 6) == 0 ) {
/* again, for compat */
mis.raid_disks = atoi(w+6);
+ } else if (strncasecmp(w, "num-devices=", 12) == 0 ) {
+ /* again, for compat */
+ mis.raid_disks = atoi(w+12);
} else {
fprintf(stderr, Name ": unrecognised word on ARRAY line: %s\n",
w);