blob: 7127a623f5da2d4e5592270ee9291b9820efea81 [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) */
NeilBrownba13da42012-03-19 12:46:39 +11007 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 {
NeilBrownba13da42012-03-19 12:46:39 +110011 struct strip_zone *strip_zone;
12 struct md_rdev **devlist; /* lists of rdevs, pointed to
13 * by strip_zone->dev */
14 int nr_strip_zones;
Linus Torvalds1da177e2005-04-16 15:20:36 -070015};
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#endif