Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

target: Use macro for WRITE_VERIFY_32 operation codes

Add WRITE_VERIFY_32 definition to scsi prototypes and use this macro
definition isntead of the hard coded value.

(Drop WRITE_VERIFY_16 that's already part of another patch - nab)

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>

authored by

Damien Le Moal and committed by
Nicholas Bellinger
e5dc9a70 402242c9

+2 -1
+1 -1
drivers/target/target_core_device.c
··· 1226 1226 switch (get_unaligned_be16(&cdb[8])) { 1227 1227 case READ_32: 1228 1228 case WRITE_32: 1229 - case 0x0c: /* WRITE_VERIFY_32 */ 1229 + case WRITE_VERIFY_32: 1230 1230 case XDWRITEREAD_32: 1231 1231 cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; 1232 1232 break;
+1
include/scsi/scsi_proto.h
··· 161 161 #define READ_32 0x09 162 162 #define VERIFY_32 0x0a 163 163 #define WRITE_32 0x0b 164 + #define WRITE_VERIFY_32 0x0c 164 165 #define WRITE_SAME_32 0x0d 165 166 166 167 /* Values for T10/04-262r7 */