aboutsummaryrefslogtreecommitdiff
path: root/include/sg_cmds_extra.h
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2012-03-23 16:17:40 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2012-03-23 16:17:40 +0000
commit2bcde4a0d87f7c8b769d915afc5602e9738d12a2 (patch)
treef7128ba1406487923e4974041604591b02865847 /include/sg_cmds_extra.h
parenta6e2431f031fdc0962fa4b347b096f438a4cd61f (diff)
downloadsg3_utils-2bcde4a0d87f7c8b769d915afc5602e9738d12a2.tar.gz
sg_xcopy+sg_copy_results first commit; sg_persist manpage
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@448 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_cmds_extra.h')
-rw-r--r--include/sg_cmds_extra.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/sg_cmds_extra.h b/include/sg_cmds_extra.h
index 2c26a0b2..c11198b5 100644
--- a/include/sg_cmds_extra.h
+++ b/include/sg_cmds_extra.h
@@ -160,6 +160,8 @@ extern int sg_ll_report_id_info(int sg_fd, int itype, void * resp,
* SG_LIB_CAT_UNIT_ATTENTION, -1 -> other failure */
extern int sg_ll_report_tgt_prt_grp(int sg_fd, void * resp,
int mx_resp_len, int noisy, int verbose);
+extern int sg_ll_report_tgt_prt_grp2(int sg_fd, void * resp, int mx_resp_len,
+ int extended, int noisy, int verbose);
/* Invokes a SCSI SET TARGET PORT GROUPS command. Return of 0 -> success,
* SG_LIB_CAT_INVALID_OP -> Report Target Port Groups not supported,
@@ -272,6 +274,23 @@ extern int sg_ll_write_long16(int sg_fd, int cor_dis, int wr_uncor, int pblock,
uint64_t llba, void * data_out, int xfer_len,
int * offsetp, int noisy, int verbose);
+/* Invokes a SCSI RECEIVE COPY RESULTS command. Return of 0 -> success,
+ * SG_LIB_CAT_INVALID_OP -> Receive copy results not supported,
+ * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_UNIT_ATTENTION,
+ * SG_LIB_CAT_NOT_READY -> device not ready, SG_LIB_CAT_ABORTED_COMMAND,
+ * -1 -> other failure */
+extern int sg_ll_receive_copy_results(int sg_fd, int sa, int list_id,
+ void * resp, int mx_resp_len,
+ int noisy, int verbose);
+
+/* Invokes a SCSI EXTENDEd COPY command. Return of 0 -> success,
+ * SG_LIB_CAT_INVALID_OP -> Extended copy not supported,
+ * SG_LIB_CAT_ILLEGAL_REQ -> bad field in cdb, SG_LIB_CAT_UNIT_ATTENTION,
+ * SG_LIB_CAT_NOT_READY -> device not ready, SG_LIB_CAT_ABORTED_COMMAND,
+ * -1 -> other failure */
+extern int sg_ll_extended_copy(int sg_fd, void * resp, int mx_resp_len,
+ int noisy, int verbose);
+
#ifdef __cplusplus
}
#endif