summaryrefslogblamecommitdiff
path: root/drivers/md/md-cluster.h
blob: 658982afcf9b6be1693c26bb33c61ce849576c58 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                              
                                                    
                                          
                                                
                                                                                  


                                                           


                          


#ifndef _MD_CLUSTER_H
#define _MD_CLUSTER_H

#include "md.h"

struct mddev;

struct md_cluster_operations {
	int (*join)(struct mddev *mddev, int nodes);
	int (*leave)(struct mddev *mddev);
	int (*slot_number)(struct mddev *mddev);
	void (*resync_info_update)(struct mddev *mddev, sector_t lo, sector_t hi);
	int (*metadata_update_start)(struct mddev *mddev);
	int (*metadata_update_finish)(struct mddev *mddev);
	int (*metadata_update_cancel)(struct mddev *mddev);
};

#endif /* _MD_CLUSTER_H */