target_core_iblock.h 518 B

1234567891011121314151617181920212223242526
  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. struct se_device dev;
  13. unsigned char ibd_udev_path[SE_UDEV_PATH_LEN];
  14. u32 ibd_flags;
  15. struct bio_set *ibd_bio_set;
  16. struct block_device *ibd_bd;
  17. bool ibd_readonly;
  18. } ____cacheline_aligned;
  19. #endif /* TARGET_CORE_IBLOCK_H */