projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b353cc
)
target/spc: Set SPT correctly in Extended INQUIRY Data VPD page
author
Sagi Grimberg
<sagig@mellanox.com>
Mon, 29 Jun 2015 15:32:03 +0000
(18:32 +0300)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Tue, 7 Jul 2015 01:07:03 +0000
(18:07 -0700)
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>
drivers/target/target_core_spc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/target/target_core_spc.c
b/drivers/target/target_core_spc.c
index b0744433315a80496a84d8d6f49e01300471f463..5df4d9b097dc13f8afb43c8eacdc58ee416279c1 100644
(file)
--- 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;