]> git.baikalelectronics.ru Git - kernel.git/commit
target: Fix VERIFY and WRITE VERIFY command parsing
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 30 Mar 2017 17:12:39 +0000 (10:12 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 2 May 2017 05:20:49 +0000 (22:20 -0700)
commit3277f03749685b9ff33c9bebb4f80a598a6402c0
tree8c46d9fc3db0adfcdbb17f4c6ffc811a59309704
parent1326104e03e56e98f7c752024d2a5f416b7c03a3
target: Fix VERIFY and WRITE VERIFY command parsing

Use the value of the BYTCHK field to determine the size of the
Data-Out buffer. For VERIFY, honor the VRPROTECT, DPO and FUA
fields. This patch avoids that LIO complains about a mismatch
between the expected transfer length and the SCSI CDB length
if the value of the BYTCHK field is 0.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Max Lohrmann <post@wickenrode.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c