]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - config.c
Fix type - MD_SB_CLEAN is a bit number, not a bitmask.
[thirdparty/mdadm.git] / config.c
index f23da81615113e589f8f64a7a20a379a4f4a900c..7383e193549f42b89c0af269b39ebfa5e45347c7 100644 (file)
--- a/config.c
+++ b/config.c
@@ -328,6 +328,15 @@ void arrayline(char *line)
                } else if (strncasecmp(w, "spares=", 7) == 0 ) {
                        /* for warning if not all spares present */
                        mis.spare_disks = atoi(w+7);
+               } else if (strncasecmp(w, "metadata=", 9) == 0) {
+                       /* style of metadata on the devices. */
+                       int i;
+                       
+                       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 */
                        if (strcasecmp(w+5, "no")==0)
@@ -421,7 +430,11 @@ void load_conffile(char *conffile)
                return;
        }
        if (strcmp(conffile, "partitions")==0) {
-               devline("DEV partitions");
+               char *list = dl_strdup("DEV");
+               dl_init(list);
+               dl_add(list, dl_strdup("partitions"));
+               devline(list);
+               free_line(list);
                loaded = 1;
                return;
        }