diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2018-01-03 08:01:22 +0100 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2018-01-21 21:56:27 +0100 |
commit | 18160d345536b88419785c5e408cce402d9db2ae (patch) | |
tree | ce008fecbd12ee09c84de4a0516d27547f7d1828 | |
parent | managemon: Don't add disk to the array after it has started (diff) | |
download | mdadm-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |