[PATCH] mdadm: allow clustered raid10 to be created with default layout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux