Whamcloud - gitweb
Add missing files, cleanup .cvsignore's
[fs/lustre-release.git] / lustre / include / linux / obd_raid1.h
1 #ifndef _OBD_RAID1
2 #define _OBD_RAID1
3 /*
4  * Copyright (C) 2001  Cluster File Systems, Inc.
5  *
6  * This code is issued under the GNU General Public License.
7  * See the file COPYING in this distribution
8  */
9
10 #include <linux/obd_class.h>
11
12 #define MAX_RAID1 16
13
14 #ifndef OBD_RAID1_DEVICENAME
15 #define OBD_RAID1_DEVICENAME "obdraid1"
16 #endif
17
18 struct raid1_obd {
19         unsigned int raid1_count; /* how many replicas */
20         /* devices to replicate on */
21         struct obd_device *raid1_devlist[MAX_RAID1];
22         /* connections we make */
23         struct obd_conn_info raid1_connections[MAX_RAID1];
24         struct list_head raid1_clients;  /* clients we have */
25 };
26
27
28 /* development definitions */
29 extern struct obdfs_sb_info *obd_sbi;
30 extern struct file_operations *obd_fso;
31
32 /* obd_raid1.c */
33 extern struct obd_ops raid1_obd_ops;
34 inline long ext2_block_map (struct inode * inode, long block);
35
36 #endif