mdadm: allow clustered raid10 to be created with default layout

Since the default layout of raid10 is n2, so we
should allow the behavior.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
Guoqing Jiang 2018-01-03 15:01:22 +08:00 committed by Jes Sorensen
parent a44c262abc
commit 18160d3455
1 changed files with 1 additions and 1 deletions

View File

@ -1547,7 +1547,7 @@ int main(int argc, char *argv[])
rv = 1;
break;
}
if (s.level == 10 && !is_near_layout_10(s.layout)) {
if (s.level == 10 && !(is_near_layout_10(s.layout) || s.layout == UnSet)) {
pr_err("only near layout is supported with clustered raid10\n");
rv = 1;
break;