linear.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:0k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. #ifndef _LINEAR_H
  2. #define _LINEAR_H
  3. #include <linux/raid/md.h>
  4. struct dev_info {
  5. kdev_t dev;
  6. unsigned long size;
  7. unsigned long offset;
  8. };
  9. typedef struct dev_info dev_info_t;
  10. struct linear_hash
  11. {
  12. dev_info_t *dev0, *dev1;
  13. };
  14. struct linear_private_data
  15. {
  16. struct linear_hash *hash_table;
  17. dev_info_t disks[MD_SB_DISKS];
  18. dev_info_t *smallest;
  19. int nr_zones;
  20. };
  21. typedef struct linear_private_data linear_conf_t;
  22. #define mddev_to_conf(mddev) ((linear_conf_t *) mddev->private)
  23. #endif