Commit c2d26f18 authored by Bryant G. Ly's avatar Bryant G. Ly Committed by Nicholas Bellinger

target: Add WRITE_VERIFY_16

This patch addresses clients who needs write_verify_16 for
large volume groups such as AIX.
Signed-off-by: default avatarBryant G. Ly <bryantly@linux.vnet.ibm.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 38d454f0
...@@ -850,6 +850,7 @@ static sense_reason_t sbc_parse_verify(struct se_cmd *cmd, int *sectors, ...@@ -850,6 +850,7 @@ static sense_reason_t sbc_parse_verify(struct se_cmd *cmd, int *sectors,
cmd->t_task_lba = transport_lba_32(cdb); cmd->t_task_lba = transport_lba_32(cdb);
break; break;
case VERIFY_16: case VERIFY_16:
case WRITE_VERIFY_16:
*sectors = transport_get_sectors_16(cdb); *sectors = transport_get_sectors_16(cdb);
cmd->t_task_lba = transport_lba_64(cdb); cmd->t_task_lba = transport_lba_64(cdb);
break; break;
...@@ -962,6 +963,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) ...@@ -962,6 +963,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops)
cmd->execute_cmd = sbc_execute_rw; cmd->execute_cmd = sbc_execute_rw;
break; break;
case WRITE_VERIFY: case WRITE_VERIFY:
case WRITE_VERIFY_16:
ret = sbc_parse_verify(cmd, &sectors, &size); ret = sbc_parse_verify(cmd, &sectors, &size);
if (ret) if (ret)
return ret; return ret;
......
...@@ -112,6 +112,7 @@ ...@@ -112,6 +112,7 @@
#define WRITE_16 0x8a #define WRITE_16 0x8a
#define READ_ATTRIBUTE 0x8c #define READ_ATTRIBUTE 0x8c
#define WRITE_ATTRIBUTE 0x8d #define WRITE_ATTRIBUTE 0x8d
#define WRITE_VERIFY_16 0x8e
#define VERIFY_16 0x8f #define VERIFY_16 0x8f
#define SYNCHRONIZE_CACHE_16 0x91 #define SYNCHRONIZE_CACHE_16 0x91
#define WRITE_SAME_16 0x93 #define WRITE_SAME_16 0x93
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment