summaryrefslogtreecommitdiff
path: root/super0.c
diff options
context:
space:
mode:
authorGuoqing Jiang <gqjiang@suse.com>2016-03-07 17:31:02 +0800
committerJes Sorensen <Jes.Sorensen@redhat.com>2016-03-07 15:21:02 -0500
commitb138214fac104472eb09666a56cd70e2b9d4b01c (patch)
treed0e7ad62410ebbec6272c1b906949d9ad72c034d /super0.c
parent942e1cdb4a6a5be02672bc686169c679e775c2be (diff)
downloadmdadm-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index 59a6a03..6fc1ac4 100644
--- a/super0.c
+++ b/super0.c
@@ -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;