Skip to contentSkip to conversation

mdadm: allow clustered raid10 to be created with default layout

PATCH Applied Guoqing Jiang 2 participants 2 messages Jan 3, 2018 – Jan 21, 2018 MD RAID

lore
Share & tools
lore
#0 lore raw

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.

---
 mdadm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mdadm.c +1 -1
index 1053c46d9fd7..d978182218db 100644
@@ -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
Applied
#1 lore raw
Quoted 7 lines · Guoqing Jiang

Since the default layout of raid10 is n2, so we
should allow the behavior.

---
 mdadm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied!

Thanks,
Jes