summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2018-01-03 08:01:22 +0100
committerJes Sorensen <jsorensen@fb.com>2018-01-21 21:56:27 +0100
commit18160d345536b88419785c5e408cce402d9db2ae (patch)
treece008fecbd12ee09c84de4a0516d27547f7d1828
parentmanagemon: Don't add disk to the array after it has started (diff)
downloadmdadm-18160d345536b88419785c5e408cce402d9db2ae.tar.xz
mdadm-18160d345536b88419785c5e408cce402d9db2ae.zip
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>
-rw-r--r--mdadm.c2
1 files changed, 1 insertions, 1 deletions
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;