Skip to content

Commit

Permalink
target: Use macro for WRITE_VERIFY_32 operation codes
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
  • Loading branch information
damien-lemoal authored and Nicholas Bellinger committed Jul 7, 2017
1 parent 402242c commit e5dc9a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/target_core_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ passthrough_parse_cdb(struct se_cmd *cmd,
switch (get_unaligned_be16(&cdb[8])) {
case READ_32:
case WRITE_32:
case 0x0c: /* WRITE_VERIFY_32 */
case WRITE_VERIFY_32:
case XDWRITEREAD_32:
cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB;
break;
Expand Down
1 change: 1 addition & 0 deletions include/scsi/scsi_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@
#define READ_32 0x09
#define VERIFY_32 0x0a
#define WRITE_32 0x0b
#define WRITE_VERIFY_32 0x0c
#define WRITE_SAME_32 0x0d

/* Values for T10/04-262r7 */
Expand Down

0 comments on commit e5dc9a7

Please sign in to comment.