diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2013-07-30 23:58:53 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2013-07-30 23:58:53 +0000 |
commit | 88732e65ad3158fb372c2077ea47ba3016f5cb17 (patch) | |
tree | 24fe93526ed6846754d9cb39350573d65d95dc6a /include/sg_cmds_extra.h | |
parent | 736d019894943c1ba75b6f9051a7e40ee8f061c8 (diff) | |
download | sg3_utils-88732e65ad3158fb372c2077ea47ba3016f5cb17.tar.gz |
sg_lib: add dStrHexErr() and dStrHexStr(); sg_xcopy work (and in sg_cmds_extra.c)
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@503 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'include/sg_cmds_extra.h')
-rw-r--r-- | include/sg_cmds_extra.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sg_cmds_extra.h b/include/sg_cmds_extra.h index c11198b5..d06e5d05 100644 --- a/include/sg_cmds_extra.h +++ b/include/sg_cmds_extra.h @@ -2,7 +2,7 @@ #define SG_CMDS_EXTRA_H /* - * Copyright (c) 2004-2012 Douglas Gilbert. + * Copyright (c) 2004-2013 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -274,7 +274,8 @@ 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, +/* Invokes a SPC-3 SCSI RECEIVE COPY RESULTS command. In SPC-4 this function + * supports all service action variants of the THIRD-PARTY COPY IN opcode. * 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, @@ -283,12 +284,12 @@ 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, +/* Invokes a SCSI EXTENDED COPY(LID1) 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, +extern int sg_ll_extended_copy(int sg_fd, void * paramp, int param_len, int noisy, int verbose); #ifdef __cplusplus |