aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2015-02-13 21:05:31 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2015-02-13 21:54:49 -0500
commitaa04dae454d087376d97f44710c4422df030a8f2 (patch)
treea8263b0138366f05c60c2b044602af2c7524a126
parent61fdb4acc8411bf50589bc67431ad12e21e7678a (diff)
target: Set LBPWS10 bit in Logical Block Provisioning EVPD
This patch sets the missing LBPWS10 bit within spc_emulate_evpd_b2() in order to signal WRITE_SAME (10) w/ UNMAP support, following the existing LBPWS bit to signal WRITE_SAME (16) w/ UNMAP support. Cc: Martin Petersen <martin.petersen@oracle.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r--drivers/target/target_core_spc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_spc.c b/drivers/target/target_core_spc.c
index 1307600fe726..f041f936a6cd 100644
--- a/drivers/target/target_core_spc.c
+++ b/drivers/target/target_core_spc.c
@@ -650,7 +650,7 @@ spc_emulate_evpd_b2(struct se_cmd *cmd, unsigned char *buf)
650 * support the use of the WRITE SAME (16) command to unmap LBAs. 650 * support the use of the WRITE SAME (16) command to unmap LBAs.
651 */ 651 */
652 if (dev->dev_attrib.emulate_tpws != 0) 652 if (dev->dev_attrib.emulate_tpws != 0)
653 buf[5] |= 0x40; 653 buf[5] |= 0x40 | 0x20;
654 654
655 return 0; 655 return 0;
656} 656}