raid0.h 573 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. mdk_rdev_t **dev; /* Devices attached to the zone */
  9. };
  10. struct raid0_private_data
  11. {
  12. struct strip_zone *strip_zone;
  13. mdk_rdev_t **devlist; /* lists of rdevs, pointed to by strip_zone->dev */
  14. int nr_strip_zones;
  15. };
  16. typedef struct raid0_private_data raid0_conf_t;
  17. #define mddev_to_conf(mddev) ((raid0_conf_t *) mddev->private)
  18. #endif