blob: 658982afcf9b6be1693c26bb33c61ce849576c58 [file] [log] [blame]
Goldwyn Rodriguesedb39c92014-03-29 10:01:53 -05001
2
3#ifndef _MD_CLUSTER_H
4#define _MD_CLUSTER_H
5
6#include "md.h"
7
8struct mddev;
9
10struct md_cluster_operations {
Goldwyn Rodriguescf921cc2014-03-30 00:42:49 -050011 int (*join)(struct mddev *mddev, int nodes);
Goldwyn Rodriguesedb39c92014-03-29 10:01:53 -050012 int (*leave)(struct mddev *mddev);
Goldwyn Rodriguescf921cc2014-03-30 00:42:49 -050013 int (*slot_number)(struct mddev *mddev);
Goldwyn Rodrigues96ae9232014-06-06 12:35:34 -050014 void (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi);
Goldwyn Rodrigues293467a2014-06-07 01:44:51 -050015 int (*metadata_update_start)(struct mddev *mddev);
16 int (*metadata_update_finish)(struct mddev *mddev);
17 int (*metadata_update_cancel)(struct mddev *mddev);
Goldwyn Rodriguesedb39c92014-03-29 10:01:53 -050018};
19
20#endif /* _MD_CLUSTER_H */