Since the default layout of raid10 is n2, so we should allow the behavior. Signed-off-by: Guoqing Jiang <gqjiang@xxxxxxxx> --- mdadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdadm.c b/mdadm.c index 1053c46d9fd7..d978182218db 100644 --- a/mdadm.c +++ b/mdadm.c @@ -1565,7 +1565,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; -- 2.13.6 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html