blob: 91f8e876ee64516949ddad76b374bc657fd1879c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _RAID0_H
2#define _RAID0_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004struct strip_zone
5{
Andre Nolldc582662009-06-16 16:18:43 +10006 sector_t zone_end; /* Start of the next zone (in sectors) */
Andre Noll019c4e22009-01-09 08:31:06 +11007 sector_t dev_start; /* Zone offset in real dev (in sectors) */
Linus Torvalds1da177e2005-04-16 15:20:36 -07008 int nb_dev; /* # of devices attached to the zone */
Linus Torvalds1da177e2005-04-16 15:20:36 -07009};
10
11struct raid0_private_data
12{
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 struct strip_zone *strip_zone;
14 mdk_rdev_t **devlist; /* lists of rdevs, pointed to by strip_zone->dev */
15 int nr_strip_zones;
Linus Torvalds1da177e2005-04-16 15:20:36 -070016};
17
18typedef struct raid0_private_data raid0_conf_t;
19
Linus Torvalds1da177e2005-04-16 15:20:36 -070020#endif