blob: 0884bba8df4ca90b36ef307b28f759e4455245a7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _RAID0_H
2#define _RAID0_H
3
NeilBrowne373ab12011-10-11 16:48:59 +11004struct strip_zone {
Andre Nolldc582662009-06-16 16:18:43 +10005 sector_t zone_end; /* Start of the next zone (in sectors) */
Andre Noll019c4e22009-01-09 08:31:06 +11006 sector_t dev_start; /* Zone offset in real dev (in sectors) */
Linus Torvalds1da177e2005-04-16 15:20:36 -07007 int nb_dev; /* # of devices attached to the zone */
Linus Torvalds1da177e2005-04-16 15:20:36 -07008};
9
NeilBrowne373ab12011-10-11 16:48:59 +110010struct r0conf {
Linus Torvalds1da177e2005-04-16 15:20:36 -070011 struct strip_zone *strip_zone;
NeilBrown3cb03002011-10-11 16:45:26 +110012 struct md_rdev **devlist; /* lists of rdevs, pointed to by strip_zone->dev */
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 int nr_strip_zones;
Linus Torvalds1da177e2005-04-16 15:20:36 -070014};
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#endif