summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorMike Christie <mchristi@redhat.com>2017-05-31 15:52:39 -0500
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-06 23:11:45 -0700
commitc6d66aba98a39cfed206c5c61f0a604ba09b26ce (patch)
treed45f9069b34a52f67f9ea58c4f50e32257944000 /include/target
parent9fe36984501035f2878aa10d83e79bfc07b7ad7e (diff)
downloadlinux-c6d66aba98a39cfed206c5c61f0a604ba09b26ce.tar.bz2
target: add helper to copy sense to se_cmd buffer
This adds a helper to copy sense from backend module buffer to the se_cmd's sense buffer. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/target/target_core_backend.h b/include/target/target_core_backend.h
index 1f2b7007f2df..3757f5f54e03 100644
--- a/include/target/target_core_backend.h
+++ b/include/target/target_core_backend.h
@@ -73,6 +73,8 @@ void target_backend_unregister(const struct target_backend_ops *);
void target_complete_cmd(struct se_cmd *, u8);
void target_complete_cmd_with_length(struct se_cmd *, u8, int);
+void transport_copy_sense_to_cmd(struct se_cmd *, unsigned char *);
+
sense_reason_t spc_parse_cdb(struct se_cmd *cmd, unsigned int *size);
sense_reason_t spc_emulate_report_luns(struct se_cmd *cmd);
sense_reason_t spc_emulate_inquiry_std(struct se_cmd *, unsigned char *);