Goldwyn Rodrigues | edb39c9 | 2014-03-29 10:01:53 -0500 | [diff] [blame] | 1 | |
| 2 | |
| 3 | #ifndef _MD_CLUSTER_H |
| 4 | #define _MD_CLUSTER_H |
| 5 | |
| 6 | #include "md.h" |
| 7 | |
| 8 | struct mddev; |
| 9 | |
| 10 | struct md_cluster_operations { |
Goldwyn Rodrigues | cf921cc | 2014-03-30 00:42:49 -0500 | [diff] [blame] | 11 | int (*join)(struct mddev *mddev, int nodes); |
Goldwyn Rodrigues | edb39c9 | 2014-03-29 10:01:53 -0500 | [diff] [blame] | 12 | int (*leave)(struct mddev *mddev); |
Goldwyn Rodrigues | cf921cc | 2014-03-30 00:42:49 -0500 | [diff] [blame] | 13 | int (*slot_number)(struct mddev *mddev); |
Goldwyn Rodrigues | 96ae923 | 2014-06-06 12:35:34 -0500 | [diff] [blame^] | 14 | void (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi); |
Goldwyn Rodrigues | edb39c9 | 2014-03-29 10:01:53 -0500 | [diff] [blame] | 15 | }; |
| 16 | |
| 17 | #endif /* _MD_CLUSTER_H */ |