diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2013-06-28 17:44:32 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2013-06-28 17:44:32 +0000 |
commit | 43c7d125abce23c3d72346ae3e0b18287047e3be (patch) | |
tree | 85b7550513005c640b9ff9756328e250ea8d7122 /src/sg_copy_results.c | |
parent | e9d9937bb92e1b630020c3a9c2d8b09e5bd20036 (diff) | |
download | sg3_utils-43c7d125abce23c3d72346ae3e0b18287047e3be.tar.gz |
sg_persist+sg_unmap: fix crash on option decode; sg_logs: expand for tape; sg_xcopy+: clean
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@500 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_copy_results.c')
-rw-r--r-- | src/sg_copy_results.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sg_copy_results.c b/src/sg_copy_results.c index b8c7599c..20c32815 100644 --- a/src/sg_copy_results.c +++ b/src/sg_copy_results.c @@ -34,7 +34,7 @@ and the optional list identifier passed as the list_id argument. */ -static const char * version_str = "1.1 20130507"; +static const char * version_str = "1.2 20130627"; #define MAX_XFER_LEN 10000 @@ -399,6 +399,12 @@ main(int argc, char * argv[]) "\t\txfer_len= %d (0x%x), sa=%d, list_id=%d\n", device_name, xfer_len, xfer_len, sa, list_id); + /* In SPC-4 opcode 0x84, service actions have command names: + * 0x0 RECEIVE COPY STATUS(LID1) + * 0x1 RECEIVE COPY DATA(LID1) + * 0x3 RECEIVE COPY OPERATING PARAMETERS + * 0x4 RECEIVE COPY FAILURE DETAILS(LID1) + */ res = sg_ll_receive_copy_results(sg_fd, sa, list_id, cpResultBuff, xfer_len, 0, verbose); ret = res; |