History

target: Return descriptor format sense data in case the LU spans 64bit sectors

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.

Sagi Grimberg committed 11 years ago

Commit 4e4937e1 parent f5a8b3a4 files · +18 −4Browse files

Showing the changes to include/target (1 of 4 files). Show all

Unified · Split

include/target/target_core_backend.h+2−0
@@ -93,4 +93,6 @@ bool target_lun_is_rdonly(struct se_cmd *); · 92 unmodified lines
9393 sense_reason_t passthrough_parse_cdb(struct se_cmd *cmd,
9494 sense_reason_t (*exec_cmd)(struct se_cmd *cmd));
9595
96+bool target_sense_desc_format(struct se_device *dev);
97+
9698 #endif /* TARGET_CORE_BACKEND_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t