]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - config.c
Create missing /dev files where needed.
[thirdparty/mdadm.git] / config.c
index c09c2061b5a75e40e73fa00818aa908c7c58956d..1408b252d22d53110dda3f7f3ea9a4ee2548b2ec 100644 (file)
--- a/config.c
+++ b/config.c
@@ -229,11 +229,7 @@ mddev_dev_t load_partitions(void)
                        continue;
                minor = strtoul(mp, NULL, 10);
 
-               name = map_dev(major, minor);
-               if (!name) {
-                       snprintf(buf, 1024, "%d:%d", major, minor);
-                       name = buf;
-               }
+               name = map_dev(major, minor, 1);
 
                d = malloc(sizeof(*d));
                d->devname = strdup(name);