dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0091-Don-t-create-bitmap-for-raid5-with-journal-disk.patch

3c4af5
From 2ce091724031e18f522994ffd1e5eb0dc404bcba Mon Sep 17 00:00:00 2001
3c4af5
From: Xiao Ni <xni@redhat.com>
3c4af5
Date: Tue, 15 Sep 2020 15:44:42 +0800
3c4af5
Subject: [PATCH 091/108] Don't create bitmap for raid5 with journal disk
3c4af5
3c4af5
Journal disk and bitmap can't exist at the same time. It needs to check if the raid
3c4af5
has a journal disk when creating bitmap.
3c4af5
3c4af5
Signed-off-by: Xiao Ni <xni@redhat.com>
3c4af5
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
3c4af5
---
3c4af5
 Create.c | 1 +
3c4af5
 1 file changed, 1 insertion(+)
3c4af5
3c4af5
diff --git a/Create.c b/Create.c
3c4af5
index 6f84e5b..0efa19c 100644
3c4af5
--- a/Create.c
3c4af5
+++ b/Create.c
3c4af5
@@ -542,6 +542,7 @@ int Create(struct supertype *st, char *mddev,
3c4af5
 	if (!s->bitmap_file &&
3c4af5
 	    s->level >= 1 &&
3c4af5
 	    st->ss->add_internal_bitmap &&
3c4af5
+	    s->journaldisks == 0 &&
3c4af5
 	    (s->consistency_policy != CONSISTENCY_POLICY_RESYNC &&
3c4af5
 	     s->consistency_policy != CONSISTENCY_POLICY_PPL) &&
3c4af5
 	    (s->write_behind || s->size > 100*1024*1024ULL)) {
3c4af5
-- 
3c4af5
2.7.5
3c4af5