2014-03-29 19:01:53 +04:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef _MD_CLUSTER_H
|
|
|
|
#define _MD_CLUSTER_H
|
|
|
|
|
|
|
|
#include "md.h"
|
|
|
|
|
|
|
|
struct mddev;
|
2014-10-30 02:51:31 +03:00
|
|
|
struct md_rdev;
|
2014-03-29 19:01:53 +04:00
|
|
|
|
|
|
|
struct md_cluster_operations {
|
2014-03-30 09:42:49 +04:00
|
|
|
int (*join)(struct mddev *mddev, int nodes);
|
2014-03-29 19:01:53 +04:00
|
|
|
int (*leave)(struct mddev *mddev);
|
2014-03-30 09:42:49 +04:00
|
|
|
int (*slot_number)(struct mddev *mddev);
|
2014-06-06 21:35:34 +04:00
|
|
|
void (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi);
|
2014-06-07 11:16:58 +04:00
|
|
|
int (*resync_start)(struct mddev *mddev, sector_t lo, sector_t hi);
|
|
|
|
void (*resync_finish)(struct mddev *mddev);
|
2014-06-07 10:44:51 +04:00
|
|
|
int (*metadata_update_start)(struct mddev *mddev);
|
|
|
|
int (*metadata_update_finish)(struct mddev *mddev);
|
|
|
|
int (*metadata_update_cancel)(struct mddev *mddev);
|
2014-06-07 11:39:37 +04:00
|
|
|
int (*area_resyncing)(struct mddev *mddev, sector_t lo, sector_t hi);
|
2014-10-30 02:51:31 +03:00
|
|
|
int (*add_new_disk_start)(struct mddev *mddev, struct md_rdev *rdev);
|
|
|
|
int (*add_new_disk_finish)(struct mddev *mddev);
|
2015-03-02 19:55:49 +03:00
|
|
|
int (*new_disk_ack)(struct mddev *mddev, bool ack);
|
2014-03-29 19:01:53 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _MD_CLUSTER_H */
|