target: Report bad sector in sense data for DIF errors
authorSagi Grimberg <sagig@mellanox.com>
Thu, 23 Jan 2014 17:29:38 +0000 (19:29 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 25 Jan 2014 06:58:53 +0000 (06:58 +0000)
commit76736db3e291246fbce9db856706af3454b0b078
tree0dddd05312db6510a42de37659ccf4203466c9fa
parent676687c69697d2081d25afd14ee90937d1fb0c8e
target: Report bad sector in sense data for DIF errors

SPC-4 states that data-integrity errors shall also report
the failed sector in CHECK_CONDITION response sense data
information field.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
drivers/target/target_core_transport.c
include/target/target_core_base.h