target: Add generation of LOGICAL BLOCK ADDRESS OUT OF RANGE
authorRoland Dreier <roland@purestorage.com>
Mon, 16 Jul 2012 22:34:21 +0000 (15:34 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 2 Aug 2012 13:37:48 +0000 (14:37 +0100)
commit0c2305d15f446ea286545b12587a7c836a1fb08c
tree70f3af2af83a9f9295acb3da3d9c2ba923d1c37d
parent6e59fd8e47abf43042a41b904f095c02c47a8468
target: Add generation of LOGICAL BLOCK ADDRESS OUT OF RANGE

commit e2397c704429025bc6b331a970f699e52f34283e upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/target/target_core_transport.c
include/target/target_core_base.h