linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [mdadm PATCH] mdadm: make create clustered raid10 possible
@ 2017-10-24  7:31 Guoqing Jiang
  2017-10-24 20:05 ` NeilBrown
  2017-10-30  5:57 ` Shaohua Li
  0 siblings, 2 replies; 5+ messages in thread
From: Guoqing Jiang @ 2017-10-24  7:31 UTC (permalink / raw)
  To: jsorensen; +Cc: linux-raid

This change to make we can create a clustered
raid10 array as well.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
---
 mdadm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mdadm.c b/mdadm.c
index 7cdcdba7c652..60d80e0103f4 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1542,8 +1542,9 @@ int main(int argc, char *argv[])
 				break;
 			}
 
-			if (s.level != 1) {
-				pr_err("--bitmap=clustered is currently supported with RAID mirror only\n");
+			if (s.level != 1 && s.level != 10) {
+				pr_err("--bitmap=clustered is currently "
+				       "supported with raid1/10 only\n");
 				rv = 1;
 				break;
 			}
-- 
2.10.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-10-30  6:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-24  7:31 [mdadm PATCH] mdadm: make create clustered raid10 possible Guoqing Jiang
2017-10-24 20:05 ` NeilBrown
2017-10-24 20:09   ` Jes Sorensen
2017-10-30  5:57 ` Shaohua Li
2017-10-30  6:54   ` Guoqing Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).