| 1 |
|
| 2 | #ifndef _RAID0_H
|
| 3 | #define _RAID0_H
|
| 4 |
|
| 5 | struct strip_zone {
|
| 6 | sector_t zone_end;
|
| 7 | sector_t dev_start;
|
| 8 | int nb_dev;
|
| 9 | int disk_shift;
|
| 10 | };
|
| 11 |
|
| 12 | |
| 13 | * the RAID0 layout for multi-zone arrays (where devices aren't all
|
| 14 | * the same size.
|
| 15 | * RAID0_ORIG_LAYOUT restores the original layout
|
| 16 | * RAID0_ALT_MULTIZONE_LAYOUT uses the altered layout
|
| 17 | * The layouts are identical when there is only one zone (all
|
| 18 | * devices the same size).
|
| 19 |
|
| 20 |
|
| 21 | enum r0layout {
|
| 22 | RAID0_ORIG_LAYOUT = 1,
|
| 23 | RAID0_ALT_MULTIZONE_LAYOUT = 2,
|
| 24 | };
|
| 25 | struct r0conf {
|
| 26 | struct strip_zone *strip_zone;
|
| 27 | struct md_rdev **devlist; |
| 28 | * by strip_zone->dev
|
| 29 | int nr_strip_zones;
|
| 30 | enum r0layout layout;
|
| 31 | };
|
| 32 |
|
| 33 | #endif
|