Skip to contentSkip to conversation

mdadm: make create clustered raid10 possible

PATCH In review Guoqing Jiang 2 participants 3 messages Oct 25, 2017 – Nov 22, 2017 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mdadm: make create clustered raid10 possible

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

---
 mdadm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mdadm.c +2 -2
index 7cdcdba7c652..bf3da870f360 100644
@@ -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;
 			}
Signature · 1 line
2.10.0
#1 lore raw
Quoted 7 lines · Guoqing Jiang

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

---
 mdadm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

I think I missed this one, however it doesn't apply anymore.

If it's still needed, could you please post an updated version.

Thanks,
Jes

#2 lore raw
Quoted 11 lines · Jes Sorensen
Quoted 7 lines · Guoqing Jiang

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

---
  mdadm.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

I think I missed this one, however it doesn't apply anymore.

If it's still needed, could you please post an updated version.

It is not needed since the v3 version had already been merged, :)

Thanks,
Guoqing