]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Detail: show correct bitmap info for cluster raid device
authorLidong Zhong <lidong.zhong@suse.com>
Mon, 16 Mar 2020 02:16:49 +0000 (10:16 +0800)
committerJes Sorensen <jsorensen@fb.com>
Mon, 16 Mar 2020 21:49:55 +0000 (17:49 -0400)
Signed-off-by: Lidong Zhong <lidong.zhong@suse.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Detail.c

index 832485fe0fb5a10e9815abcb03c02be39b1cb9f6..daec4f1a8f42338fc758dd14b00f42ffcfdf806c 100644 (file)
--- 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 : Internal(Clustered)\n\n");
+               else if (array.state & (1<<MD_SB_BITMAP_PRESENT))
                        printf("     Intent Bitmap : Internal\n\n");
                atime = array.utime;
                if (atime)