dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0067-Detail-show-correct-bitmap-info-for-cluster-raid-dev.patch

8e8941
From 9e4494051de3f53228fabae56c116879bff5a0c8 Mon Sep 17 00:00:00 2001
8e8941
From: Lidong Zhong <lidong.zhong@suse.com>
8e8941
Date: Mon, 16 Mar 2020 10:16:49 +0800
8e8941
Subject: [RHEL7.9 PATCH 67/77] Detail: show correct bitmap info for cluster
8e8941
 raid device
8e8941
8e8941
Signed-off-by: Lidong Zhong <lidong.zhong@suse.com>
8e8941
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
8e8941
---
8e8941
 Detail.c | 4 +++-
8e8941
 1 file changed, 3 insertions(+), 1 deletion(-)
8e8941
8e8941
diff --git a/Detail.c b/Detail.c
8e8941
index 832485f..daec4f1 100644
8e8941
--- a/Detail.c
8e8941
+++ b/Detail.c
8e8941
@@ -468,7 +468,9 @@ int Detail(char *dev, struct context *c)
8e8941
 		if (ioctl(fd, GET_BITMAP_FILE, &bmf) == 0 && bmf.pathname[0]) {
8e8941
 			printf("     Intent Bitmap : %s\n", bmf.pathname);
8e8941
 			printf("\n");
8e8941
-		} else if (array.state & (1<
8e8941
+		} else if (array.state & (1<
8e8941
+			printf("     Intent Bitmap : Internal(Clustered)\n\n");
8e8941
+		else if (array.state & (1<
8e8941
 			printf("     Intent Bitmap : Internal\n\n");
8e8941
 		atime = array.utime;
8e8941
 		if (atime)
8e8941
-- 
8e8941
2.7.5
8e8941