diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2016-03-07 17:31:02 +0800 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-03-07 15:21:02 -0500 |
commit | b138214fac104472eb09666a56cd70e2b9d4b01c (patch) | |
tree | d0e7ad62410ebbec6272c1b906949d9ad72c034d /super0.c | |
parent | 942e1cdb4a6a5be02672bc686169c679e775c2be (diff) | |
download | mdadm-b138214fac104472eb09666a56cd70e2b9d4b01c.tar.gz |
Fix wrong bitmap output for cluster raid
For cluster raid, we need to displays bitmap related
contents from different bitmaps which are based on node
num. So bitmap_file_open and locate_bitmap are changed a
little bit for the purpose.
Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Fixes: b98043a2f8 ("Show all bitmaps while examining bitmap")
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1156,7 +1156,7 @@ static int add_internal_bitmap0(struct supertype *st, int *chunkp, return 1; } -static int locate_bitmap0(struct supertype *st, int fd) +static int locate_bitmap0(struct supertype *st, int fd, int node_num) { unsigned long long dsize; unsigned long long offset; |