Thread (2 messages) 2 messages, 2 authors, 2020-03-13

Re: [PATCH] Detail: show correct bitmap info for cluster raid device

From: Guoqing Jiang <hidden>
Date: 2020-03-13 15:07:28

Hi Lidong,

On 3/13/20 10:05 AM, Lidong Zhong wrote:
quoted hunk ↗ jump to hunk
Signed-off-by: Lidong Zhong <redacted>
---
  Detail.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Detail.c b/Detail.c
index 832485f..39fce29 100644
--- a/Detail.c
+++ b/Detail.c
@@ -468,7 +468,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 : Clustered\n\n");
Better to use "Internal (Clustered)" since it is a special internal bitmap.
Anyway, Acked-by: Guoqing Jiang [off-list ref]

Cheers,
Guoqing
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help