target_core_iblock.h 495 B

123456789101112131415161718192021222324
  1. #ifndef TARGET_CORE_IBLOCK_H
  2. #define TARGET_CORE_IBLOCK_H
  3. #define IBLOCK_VERSION "4.0"
  4. #define IBLOCK_MAX_CDBS 16
  5. #define IBLOCK_LBA_SHIFT 9
  6. struct iblock_req {
  7. atomic_t pending;
  8. atomic_t ib_bio_err_cnt;
  9. } ____cacheline_aligned;
  10. #define IBDF_HAS_UDEV_PATH 0x01
  11. struct iblock_dev {
  12. unsigned char ibd_udev_path[SE_UDEV_PATH_LEN];
  13. u32 ibd_flags;
  14. struct bio_set *ibd_bio_set;
  15. struct block_device *ibd_bd;
  16. bool ibd_readonly;
  17. } ____cacheline_aligned;
  18. #endif /* TARGET_CORE_IBLOCK_H */