2014-03-29 16:01:53 +01:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef _MD_CLUSTER_H
|
|
|
|
#define _MD_CLUSTER_H
|
|
|
|
|
|
|
|
#include "md.h"
|
|
|
|
|
|
|
|
struct mddev;
|
|
|
|
|
|
|
|
struct md_cluster_operations {
|
2014-03-30 07:42:49 +02:00
|
|
|
int (*join)(struct mddev *mddev, int nodes);
|
2014-03-29 16:01:53 +01:00
|
|
|
int (*leave)(struct mddev *mddev);
|
2014-03-30 07:42:49 +02:00
|
|
|
int (*slot_number)(struct mddev *mddev);
|
2014-06-06 19:35:34 +02:00
|
|
|
void (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi);
|
2014-06-07 08:44:51 +02:00
|
|
|
int (*metadata_update_start)(struct mddev *mddev);
|
|
|
|
int (*metadata_update_finish)(struct mddev *mddev);
|
|
|
|
int (*metadata_update_cancel)(struct mddev *mddev);
|
2014-03-29 16:01:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _MD_CLUSTER_H */
|