diff options
author | Lidong Zhong <lidong.zhong@suse.com> | 2020-03-16 03:16:49 +0100 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2020-03-16 22:49:55 +0100 |
commit | 9e4494051de3f53228fabae56c116879bff5a0c8 (patch) | |
tree | 2ecfad6797976faa59f0a2cf1ec010d914117251 /Detail.c | |
parent | imsm: Correct minimal device size. (diff) | |
download | mdadm-9e4494051de3f53228fabae56c116879bff5a0c8.tar.xz mdadm-9e4494051de3f53228fabae56c116879bff5a0c8.zip |
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>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |