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>
This commit is contained in:
Lidong Zhong 2020-03-16 10:16:49 +08:00 committed by Jes Sorensen
parent 06a6101c0a
commit 9e4494051d
1 changed files with 3 additions and 1 deletions

View File

@ -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)