From 070138c9d60d9b70dc809e1a200af6e7d15d8a4a Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Mon, 5 Aug 2013 19:55:45 +0000 Subject: improve 3 party copy library support; add new examples sg_tst_excl and sg_tst_excl2 git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@504 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- include/sg_cmds_extra.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/sg_cmds_extra.h') diff --git a/include/sg_cmds_extra.h b/include/sg_cmds_extra.h index d06e5d05..b5cfe750 100644 --- a/include/sg_cmds_extra.h +++ b/include/sg_cmds_extra.h @@ -292,6 +292,18 @@ extern int sg_ll_receive_copy_results(int sg_fd, int sa, int list_id, extern int sg_ll_extended_copy(int sg_fd, void * paramp, int param_len, int noisy, int verbose); +/* Handles various service actions associated with opcode 0x83 which is + * called THIRD PARTY COPY OUT. These include the EXTENDED COPY(LID4) and + * WRITE USING TOKEN commands. Return of 0 -> success, + * SG_LIB_CAT_INVALID_OP -> opcode 0x83 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_3party_copy_out(int sg_fd, int sa, unsigned int list_id, + int group_num, int timeout_secs, + void * paramp, int param_len, int noisy, + int verbose); + #ifdef __cplusplus } #endif -- cgit v1.2.3