Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _RAID0_H |
| 2 | #define _RAID0_H |
| 3 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | struct strip_zone |
| 5 | { |
Andre Noll | dc58266 | 2009-06-16 16:18:43 +1000 | [diff] [blame] | 6 | sector_t zone_end; /* Start of the next zone (in sectors) */ |
Andre Noll | 019c4e2 | 2009-01-09 08:31:06 +1100 | [diff] [blame] | 7 | sector_t dev_start; /* Zone offset in real dev (in sectors) */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | int nb_dev; /* # of devices attached to the zone */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | }; |
| 10 | |
| 11 | struct raid0_private_data |
| 12 | { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | }; |
| 17 | |
| 18 | typedef struct raid0_private_data raid0_conf_t; |
| 19 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #endif |