raid0.h 580 B

1234567891011121314151617181920212223
  1. #ifndef _RAID0_H
  2. #define _RAID0_H
  3. struct strip_zone
  4. {
  5. sector_t zone_end; /* Start of the next zone (in sectors) */
  6. sector_t dev_start; /* Zone offset in real dev (in sectors) */
  7. int nb_dev; /* # of devices attached to the zone */
  8. };
  9. struct raid0_private_data
  10. {
  11. struct strip_zone *strip_zone;
  12. mdk_rdev_t **devlist; /* lists of rdevs, pointed to by strip_zone->dev */
  13. int nr_strip_zones;
  14. int scale_raid_disks; /* divide rdev->raid_disks by this in run()
  15. * to handle conversion from raid10
  16. */
  17. };
  18. typedef struct raid0_private_data raid0_conf_t;
  19. #endif