You need to sign in or sign up before continuing.
提交 e5dc9a70 编写于 作者: D Damien Le Moal 提交者: Nicholas Bellinger

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: NDamien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
上级 402242c9
...@@ -1226,7 +1226,7 @@ passthrough_parse_cdb(struct se_cmd *cmd, ...@@ -1226,7 +1226,7 @@ passthrough_parse_cdb(struct se_cmd *cmd,
switch (get_unaligned_be16(&cdb[8])) { switch (get_unaligned_be16(&cdb[8])) {
case READ_32: case READ_32:
case WRITE_32: case WRITE_32:
case 0x0c: /* WRITE_VERIFY_32 */ case WRITE_VERIFY_32:
case XDWRITEREAD_32: case XDWRITEREAD_32:
cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB;
break; break;
......
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
#define READ_32 0x09 #define READ_32 0x09
#define VERIFY_32 0x0a #define VERIFY_32 0x0a
#define WRITE_32 0x0b #define WRITE_32 0x0b
#define WRITE_VERIFY_32 0x0c
#define WRITE_SAME_32 0x0d #define WRITE_SAME_32 0x0d
/* Values for T10/04-262r7 */ /* Values for T10/04-262r7 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册