]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Create.c
mdadm: add map_num_s()
[thirdparty/mdadm.git] / Create.c
index 9ea19de0d7227fc938f8cf90e1ba184706c8873f..c84c1ac811d01b2f80dd93f5b5d729c833210aeb 100644 (file)
--- a/Create.c
+++ b/Create.c
@@ -83,7 +83,7 @@ int default_layout(struct supertype *st, int level, int verbose)
 
        if (layout_map) {
                layout = map_name(layout_map, "default");
-               layout_name = map_num(layout_map, layout);
+               layout_name = map_num_s(layout_map, layout);
        }
        if (layout_name && verbose > 0)
                pr_err("layout defaults to %s\n", layout_name);