]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Build.c
mdopen: Introduce new rules for creating device name.
[thirdparty/mdadm.git] / Build.c
diff --git a/Build.c b/Build.c
index 1e751d1312fcf631e69f1ae0dae7bb5f5a2fcfe9..789aca45996bf8a37796e0de34f0e5192e3268a8 100644 (file)
--- a/Build.c
+++ b/Build.c
@@ -113,8 +113,8 @@ int Build(char *mddev, int chunk, int level, int layout,
                        break;
                }
 
-       /* We need to create the device */
-       mdfd = create_mddev(mddev, autof);
+       /* We need to create the device.  It can have no name. */
+       mdfd = create_mddev(mddev, NULL, autof, LOCAL, NULL);
        if (mdfd < 0)
                return 1;