blob: 51a24df15b64bbde1af3dce6ac0bc134db6c0ddd [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 Rodriguesedb39c92014-03-29 10:01:53 -050015};
16
17#endif /* _MD_CLUSTER_H */