From: Guoqing Jiang Date: Wed, 3 Jan 2018 07:01:22 +0000 (+0800) Subject: mdadm: allow clustered raid10 to be created with default layout X-Git-Tag: mdadm-4.1-rc1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18160d345536b88419785c5e408cce402d9db2ae;p=thirdparty%2Fmdadm.git 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 Signed-off-by: Jes Sorensen --- diff --git a/mdadm.c b/mdadm.c index 62d7ec34..afc30151 100644 --- a/mdadm.c +++ b/mdadm.c @@ -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;