raid0.h 619 B

123456789101112131415161718192021222324
  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. sector_t sectors; /* Zone size in sectors */
  8. int nb_dev; /* # of devices attached to the zone */
  9. mdk_rdev_t **dev; /* Devices attached to the zone */
  10. };
  11. struct raid0_private_data
  12. {
  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;
  16. };
  17. typedef struct raid0_private_data raid0_conf_t;
  18. #define mddev_to_conf(mddev) ((raid0_conf_t *) mddev->private)
  19. #endif