diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-25 16:18:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-25 16:18:46 +0000 |
commit | bf5c2aa1d837ea8bb6a4c379ac125b1a41efc9bf (patch) | |
tree | abe74458156206a4adf2950b1cbcad241a72e80e /Build.c | |
parent | Adding upstream version 4.2. (diff) | |
download | mdadm-c972aa1772bd50d3199da8fa3f3902fc5f0b58e3.tar.xz mdadm-c972aa1772bd50d3199da8fa3f3902fc5f0b58e3.zip |
Adding upstream version 4.2+20230223.upstream/4.2+20230223
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Build.c')
-rw-r--r-- | Build.c | 23 |
1 files changed, 1 insertions, 22 deletions
@@ -71,28 +71,7 @@ int Build(char *mddev, struct mddev_dev *devlist, } if (s->layout == UnSet) - switch(s->level) { - default: /* no layout */ - s->layout = 0; - break; - case 10: - s->layout = 0x102; /* near=2, far=1 */ - if (c->verbose > 0) - pr_err("layout defaults to n1\n"); - break; - case 5: - case 6: - s->layout = map_name(r5layout, "default"); - if (c->verbose > 0) - pr_err("layout defaults to %s\n", map_num(r5layout, s->layout)); - break; - case LEVEL_FAULTY: - s->layout = map_name(faultylayout, "default"); - - if (c->verbose > 0) - pr_err("layout defaults to %s\n", map_num(faultylayout, s->layout)); - break; - } + s->layout = default_layout(NULL, s->level, c->verbose); /* We need to create the device. It can have no name. */ map_lock(&map); |