All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] target: Add WRITE_VERIFY_16
@ 2017-04-18 19:10 Bryant G. Ly
  2017-05-02  4:57 ` Nicholas A. Bellinger
  0 siblings, 1 reply; 2+ messages in thread
From: Bryant G. Ly @ 2017-04-18 19:10 UTC (permalink / raw)
  To: nab; +Cc: seroyer, linux-scsi, target-devel, Bryant G. Ly

This patch addresses clients who needs write_verify_16 for
large volume groups such as AIX.

Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
---
 drivers/target/target_core_sbc.c | 2 ++
 include/scsi/scsi_proto.h        | 1 +
 2 files changed, 3 insertions(+)

diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c
index ee35c90..2060f5a 100644
--- a/drivers/target/target_core_sbc.c
+++ b/drivers/target/target_core_sbc.c
@@ -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);
 		break;
 	case VERIFY_16:
+	case WRITE_VERIFY_16:
 		*sectors = transport_get_sectors_16(cdb);
 		cmd->t_task_lba = transport_lba_64(cdb);
 		break;
@@ -962,6 +963,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops)
 		cmd->execute_cmd = sbc_execute_rw;
 		break;
 	case WRITE_VERIFY:
+	case WRITE_VERIFY_16:
 		ret = sbc_parse_verify(cmd, &sectors, &size);
 		if (ret)
 			return ret;
diff --git a/include/scsi/scsi_proto.h b/include/scsi/scsi_proto.h
index 6ba66e0..ce78ec8 100644
--- a/include/scsi/scsi_proto.h
+++ b/include/scsi/scsi_proto.h
@@ -112,6 +112,7 @@
 #define WRITE_16              0x8a
 #define READ_ATTRIBUTE        0x8c
 #define WRITE_ATTRIBUTE	      0x8d
+#define WRITE_VERIFY_16	      0x8e
 #define VERIFY_16	      0x8f
 #define SYNCHRONIZE_CACHE_16  0x91
 #define WRITE_SAME_16	      0x93
-- 
2.5.4 (Apple Git-61)

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] target: Add WRITE_VERIFY_16
  2017-04-18 19:10 [PATCH] target: Add WRITE_VERIFY_16 Bryant G. Ly
@ 2017-05-02  4:57 ` Nicholas A. Bellinger
  0 siblings, 0 replies; 2+ messages in thread
From: Nicholas A. Bellinger @ 2017-05-02  4:57 UTC (permalink / raw)
  To: Bryant G. Ly; +Cc: seroyer, linux-scsi, target-devel

On Tue, 2017-04-18 at 14:10 -0500, Bryant G. Ly wrote:
> This patch addresses clients who needs write_verify_16 for
> large volume groups such as AIX.
> 
> Signed-off-by: Bryant G. Ly <bryantly@linux.vnet.ibm.com>
> ---
>  drivers/target/target_core_sbc.c | 2 ++
>  include/scsi/scsi_proto.h        | 1 +
>  2 files changed, 3 insertions(+)

Applied.

Thanks Bryant.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-02  4:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 19:10 [PATCH] target: Add WRITE_VERIFY_16 Bryant G. Ly
2017-05-02  4:57 ` Nicholas A. Bellinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.