31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From d4f8d99b03fb4f3da105e7f3e52d712a0dea45b7 Mon Sep 17 00:00:00 2001
|
|
From: Lidong Zhong <lidong.zhong@suse.com>
|
|
Date: Mon, 16 Mar 2020 10:16:49 +0800
|
|
Subject: [PATCH 20/27] Detail: show correct bitmap info for cluster raid
|
|
device
|
|
|
|
Signed-off-by: Lidong Zhong <lidong.zhong@suse.com>
|
|
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
|
|
---
|
|
Detail.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/Detail.c b/Detail.c
|
|
index 20ea03a..dadcafe 100644
|
|
--- a/Detail.c
|
|
+++ b/Detail.c
|
|
@@ -467,7 +467,9 @@ int Detail(char *dev, struct context *c)
|
|
if (ioctl(fd, GET_BITMAP_FILE, &bmf) == 0 && bmf.pathname[0]) {
|
|
printf(" Intent Bitmap : %s\n", bmf.pathname);
|
|
printf("\n");
|
|
- } else if (array.state & (1<<MD_SB_BITMAP_PRESENT))
|
|
+ } else if (array.state & (1<<MD_SB_CLUSTERED))
|
|
+ printf(" Intent Bitmap : Internal(Clustered)\n\n");
|
|
+ else if (array.state & (1<<MD_SB_BITMAP_PRESENT))
|
|
printf(" Intent Bitmap : Internal\n\n");
|
|
atime = array.utime;
|
|
if (atime)
|
|
--
|
|
2.21.1 (Apple Git-122.3)
|
|
|