target_core_iblock.h 582 B

1234567891011121314151617181920212223242526272829
  1. #ifndef TARGET_CORE_IBLOCK_H
  2. #define TARGET_CORE_IBLOCK_H
  3. #include <linux/atomic.h>
  4. #include <target/target_core_base.h>
  5. #define IBLOCK_VERSION "4.0"
  6. #define IBLOCK_MAX_CDBS 16
  7. #define IBLOCK_LBA_SHIFT 9
  8. struct iblock_req {
  9. atomic_t pending;
  10. atomic_t ib_bio_err_cnt;
  11. } ____cacheline_aligned;
  12. #define IBDF_HAS_UDEV_PATH 0x01
  13. struct iblock_dev {
  14. struct se_device dev;
  15. unsigned char ibd_udev_path[SE_UDEV_PATH_LEN];
  16. u32 ibd_flags;
  17. struct bio_set *ibd_bio_set;
  18. struct block_device *ibd_bd;
  19. bool ibd_readonly;
  20. } ____cacheline_aligned;
  21. #endif /* TARGET_CORE_IBLOCK_H */