mdadm: allow clustered raid10 to be created with default layout
PATCH 1/1 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 <[email protected]>
--- mdadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mdadm.c +1 -1
@@ -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 ;
Signature · 1 line
2.13.6
Jes Sorensen
AppliedQuoted 7 lines · Guoqing Jiang
Since the default layout of raid10 is n2, so we
should allow the behavior.Signed-off-by Guoqing Jiang <[email protected]>--- mdadm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied!
Thanks,
Jes