From: Sagi Grimberg Date: Mon, 29 Jun 2015 15:32:03 +0000 (+0300) Subject: target/spc: Set SPT correctly in Extended INQUIRY Data VPD page X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=27e6772b0d492375621f496a114617bf9c17c8d2;p=linux-beck.git 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 Signed-off-by: Nicholas Bellinger --- diff --git a/drivers/target/target_core_spc.c b/drivers/target/target_core_spc.c index b0744433315a..5df4d9b097dc 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;