Linux RAID subsystem development
 help / color / mirror / Atom feed
* [PATCH V2] mdadm: make create clustered raid10 possible
@ 2017-10-25  1:19 Guoqing Jiang
  2017-11-21 18:34 ` Jes Sorensen
  0 siblings, 1 reply; 3+ messages in thread
From: Guoqing Jiang @ 2017-10-25  1:19 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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mdadm.c b/mdadm.c
index 7cdcdba7c652..bf3da870f360 100644
--- a/mdadm.c
+++ b/mdadm.c
@@ -1542,8 +1542,8 @@ 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] 3+ messages in thread

end of thread, other threads:[~2017-11-22  1:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-25  1:19 [PATCH V2] mdadm: make create clustered raid10 possible Guoqing Jiang
2017-11-21 18:34 ` Jes Sorensen
2017-11-22  1:16   ` Guoqing Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox