In case a LU spans 64bit sectors, fixed size sense data information field is only 32 bits which means the sector information will be truncated. Thus, if the LU spans 64bit sectors, use descriptor format sense data to correctly report sector information.
Showing the changes to include/target (1 of 4 files). Show all
Unified · Split
| @@ -93,4 +93,6 @@ bool target_lun_is_rdonly(struct se_cmd *); · 92 unmodified lines | |||
| 93 | sense_reason_t passthrough_parse_cdb(struct se_cmd *cmd, | 93 | sense_reason_t passthrough_parse_cdb(struct se_cmd *cmd, |
| 94 | sense_reason_t (*exec_cmd)(struct se_cmd *cmd)); | 94 | sense_reason_t (*exec_cmd)(struct se_cmd *cmd)); |
| 95 | 95 | ||
| 96 | bool target_sense_desc_format(struct se_device *dev); | ||
| 97 | |||
| 96 | #endif /* TARGET_CORE_BACKEND_H */ | 98 | #endif /* TARGET_CORE_BACKEND_H */ |