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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 17 Jul 2012 00:35:35 +0000 (17:35 -0700)
commite2397c704429025bc6b331a970f699e52f34283e
tree470157d2f9a66ca40b295b9aa16c4fdf2222f15c
parentc8045372dd2d4784bc4cb32ddc27f4b88ff2140c
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>
drivers/target/target_core_transport.c
include/target/target_core_base.h