summaryrefslogtreecommitdiff
path: root/mdadm.h
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 /mdadm.h
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 'mdadm.h')
-rwxr-xr-xmdadm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index 72888e2..355c455 100755
--- a/mdadm.h
+++ b/mdadm.h
@@ -904,7 +904,7 @@ extern struct superswitch {
/* Seek 'fd' to start of write-intent-bitmap. Must be an
* md-native format bitmap
*/
- int (*locate_bitmap)(struct supertype *st, int fd);
+ int (*locate_bitmap)(struct supertype *st, int fd, int node_num);
/* if add_internal_bitmap succeeded for existing array, this
* writes it out.
*/