target: Return correct sense data for IO past the end of a device
authorRoland Dreier <roland@purestorage.com>
Thu, 27 Jun 2013 00:36:18 +0000 (17:36 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 8 Jul 2013 01:36:45 +0000 (18:36 -0700)
commit09ceadc70383a4105c0372f9e83da2c0cb0a8017
treee61bfe80684b47852ee972a7c195dec4e664435a
parente5c0d6ad557b32f431a70a4efba820430f6ff88b
target: Return correct sense data for IO past the end of a device

We should use TCM_ADDRESS_OUT_OF_RANGE (-> sense data LOGICAL BLOCK
ADDRESS OUT OF RANGE) for IOs past the end of a device instead of
INVALID FIELD IN CDB.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c