summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2015-06-29 18:32:03 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2015-07-06 18:07:03 -0700
commit27e6772b0d492375621f496a114617bf9c17c8d2 (patch)
tree7b84942d73af45abe68824eeee584dbe14956cfb /drivers/target
parent9b353cc8f199e4bc78023e8300306b5a16b48e75 (diff)
downloadop-kernel-dev-27e6772b0d492375621f496a114617bf9c17c8d2.zip
op-kernel-dev-27e6772b0d492375621f496a114617bf9c17c8d2.tar.gz
target/spc: Set SPT correctly in Extended INQUIRY Data VPD page
LIO supports protection types 1,3 so setting a hard-coded SPT=3 is fine for now. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_spc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/target/target_core_spc.c b/drivers/target/target_core_spc.c
index b074443..5df4d9b 100644
--- a/drivers/target/target_core_spc.c
+++ b/drivers/target/target_core_spc.c
@@ -458,6 +458,9 @@ spc_emulate_evpd_86(struct se_cmd *cmd, unsigned char *buf)
buf[4] = 0x4;
}
+ /* logical unit supports type 1 and type 3 protection */
+ buf[4] |= (0x3 << 3);
+
/* Set HEADSUP, ORDSUP, SIMPSUP */
buf[5] = 0x07;
OpenPOWER on IntegriCloud