Whamcloud - gitweb
e28a708ace438c9449f750b2607b993eec98e644
[fs/lustre-release.git] / lustre / include / linux / obd_raid1.h
1 #ifndef _OBD_RAID1
2 #define _OBD_RAID1
3
4 #include <linux/obd_class.h>
5
6 #define MAX_RAID1 16
7
8 #ifndef OBD_RAID1_DEVICENAME
9 #define OBD_RAID1_DEVICENAME "obdraid1"
10 #endif
11
12 struct raid1_obd {
13         unsigned int raid1_count; /* how many replicas */
14         /* devices to replicate on */
15         struct obd_device *raid1_devlist[MAX_RAID1];
16         /* connections we make */
17         struct obd_conn_info raid1_connections[MAX_RAID1];
18         struct list_head raid1_clients;  /* clients we have */
19 };
20
21
22 /* development definitions */
23 extern struct obdfs_sb_info *obd_sbi;
24 extern struct file_operations *obd_fso;
25
26 /* obd_raid1.c */
27 extern struct obd_ops raid1_obd_ops;
28 inline long ext2_block_map (struct inode * inode, long block);
29
30 #endif