]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:35 +0000 (08:22 -0700)
commita3c28db4f6072325d4a72e0adcd969c290dc9560
tree32fda03f52e0ebbdf36ab1d23964b71d64a80a89
parent28a33cbc24e4256c143dce96c7d93bf423229f92
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_transport.c
include/target/target_core_base.h