aboutsummaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2012-07-16 18:34:21 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-07-16 20:35:35 -0400
commite2397c704429025bc6b331a970f699e52f34283e (patch)
tree470157d2f9a66ca40b295b9aa16c4fdf2222f15c /include/target
parentc8045372dd2d4784bc4cb32ddc27f4b88ff2140c (diff)
target: Add generation of LOGICAL BLOCK ADDRESS OUT OF RANGE
Many SCSI commands are defined to return a CHECK CONDITION / ILLEGAL REQUEST with ASC set to LOGICAL BLOCK ADDRESS OUT OF RANGE if the initiator sends a command that accesses a too-big LBA. Add an enum value and case entries so that target code can return this status. Signed-off-by: Roland Dreier <roland@purestorage.com> Cc: stable@vger.kernel.org Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index fa83ea13b1b..128ce46fa48 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -212,6 +212,7 @@ enum tcm_sense_reason_table {
212 TCM_CHECK_CONDITION_UNIT_ATTENTION = 0x0e, 212 TCM_CHECK_CONDITION_UNIT_ATTENTION = 0x0e,
213 TCM_CHECK_CONDITION_NOT_READY = 0x0f, 213 TCM_CHECK_CONDITION_NOT_READY = 0x0f,
214 TCM_RESERVATION_CONFLICT = 0x10, 214 TCM_RESERVATION_CONFLICT = 0x10,
215 TCM_ADDRESS_OUT_OF_RANGE = 0x11,
215}; 216};
216 217
217enum target_sc_flags_table { 218enum target_sc_flags_table {