linear.h 425 B

123456789101112131415161718192021222324252627
  1. #ifndef _LINEAR_H
  2. #define _LINEAR_H
  3. #include <linux/raid/md.h>
  4. struct dev_info {
  5. mdk_rdev_t *rdev;
  6. sector_t size;
  7. sector_t offset;
  8. };
  9. typedef struct dev_info dev_info_t;
  10. struct linear_private_data
  11. {
  12. dev_info_t **hash_table;
  13. dev_info_t *smallest;
  14. int nr_zones;
  15. dev_info_t disks[0];
  16. };
  17. typedef struct linear_private_data linear_conf_t;
  18. #define mddev_to_conf(mddev) ((linear_conf_t *) mddev->private)
  19. #endif