Commit | Line | Data |
---|---|---|
edb39c9d GR |
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 { | |
cf921cc1 | 11 | int (*join)(struct mddev *mddev, int nodes); |
edb39c9d | 12 | int (*leave)(struct mddev *mddev); |
cf921cc1 | 13 | int (*slot_number)(struct mddev *mddev); |
96ae923a | 14 | void (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi); |
965400eb GR |
15 | int (*resync_start)(struct mddev *mddev, sector_t lo, sector_t hi); |
16 | void (*resync_finish)(struct mddev *mddev); | |
293467aa GR |
17 | int (*metadata_update_start)(struct mddev *mddev); |
18 | int (*metadata_update_finish)(struct mddev *mddev); | |
19 | int (*metadata_update_cancel)(struct mddev *mddev); | |
589a1c49 | 20 | int (*area_resyncing)(struct mddev *mddev, sector_t lo, sector_t hi); |
edb39c9d GR |
21 | }; |
22 | ||
23 | #endif /* _MD_CLUSTER_H */ |