From 050aa4385fef1eb0ef515bdc97c47dc24858354a Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 9 Oct 2020 18:09:07 +0000 Subject: sg_dd: add 00,ff,random flags; sg_modes: document '-s' option git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@864 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- testing/sg_mrq_dd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'testing') diff --git a/testing/sg_mrq_dd.cpp b/testing/sg_mrq_dd.cpp index 2d4515a4..5cd9da49 100644 --- a/testing/sg_mrq_dd.cpp +++ b/testing/sg_mrq_dd.cpp @@ -30,7 +30,7 @@ * */ -static const char * version_str = "1.13 20200927"; +static const char * version_str = "1.14 20201008"; #define _XOPEN_SOURCE 600 #ifndef _GNU_SOURCE @@ -1829,6 +1829,7 @@ sg_half_segment_mrq0(Rq_elem * rep, scat_gath_iter & sg_it, bool is_wr, t_v4p->request = (uint64_t)t_cdb.data(); t_v4p->usr_ptr = t_v4p->request; t_v4p->response = (uint64_t)rep->sb; + t_v4p->max_response_len = sizeof(rep->sb); t_v4p->flags = rflags; t_v4p->request_len = cdbsz; if (is_wr) { @@ -2352,6 +2353,7 @@ do_both_sg_segment_mrq0(Rq_elem * rep, scat_gath_iter & i_sg_it, t_v4p->request = (uint64_t)t_cdb.data(); t_v4p->usr_ptr = t_v4p->request; t_v4p->response = (uint64_t)rep->sb; + t_v4p->max_response_len = sizeof(rep->sb); t_v4p->flags = iflags; t_v4p->request_len = cdbsz; t_v4p->din_xfer_len = num * clp->bs; -- cgit v1.2.3