]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mapfile.c
FIX: resolve make everything compilation error
[thirdparty/mdadm.git] / mapfile.c
index 997f0954ecedb8fcd41764384be89c33a45261e9..9e2c89368c9cc2a0f997cbbc35e6165fa2dafe0d 100644 (file)
--- a/mapfile.c
+++ b/mapfile.c
@@ -246,6 +246,7 @@ int map_update(struct map_ent **mpp, int devnum, char *metadata,
                        memcpy(mp->uuid, uuid, 16);
                        free(mp->path);
                        mp->path = path ? strdup(path) : NULL;
+                       mp->bad = 0;
                        break;
                }
        if (!mp)
@@ -431,7 +432,9 @@ void RebuildMap(void)
                                 *   find a unique name based on metadata name.
                                 *   
                                 */
-                               struct mddev_ident *match = conf_match(info, st);
+                               struct mddev_ident *match = conf_match(st, info,
+                                                                      NULL, 0,
+                                                                      NULL);
                                struct stat stb;
                                if (match && match->devname && match->devname[0] == '/') {
                                        path = match->devname;