From cc730c8de77b8f35d924cb4a01437f7166d85e12 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Thu, 11 Apr 2019 00:23:23 +0000 Subject: sg_modes+sg_logs: placeholders for Commmand duration limits pages (sbc4r17 for spc6r?) git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@817 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- testing/sg_tst_ioctl.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'testing/sg_tst_ioctl.c') diff --git a/testing/sg_tst_ioctl.c b/testing/sg_tst_ioctl.c index 08c8bab1..fb21bcb2 100644 --- a/testing/sg_tst_ioctl.c +++ b/testing/sg_tst_ioctl.c @@ -56,7 +56,7 @@ * later of the Linux sg driver. */ -static const char * version_str = "Version: 1.07 20190402"; +static const char * version_str = "Version: 1.08 20190406"; #define INQ_REPLY_LEN 128 #define INQ_CMD_LEN 6 @@ -392,6 +392,18 @@ tst_ioctl(const char * fnp, int sg_fd, const char * fn2p, int sg_fd2, } printf(" %sread_value[SG_SEIRV_SUBMITTED]= %u\n", cp, seip->read_value); + memset(seip, 0, sizeof(*seip)); + seip->sei_wr_mask |= SG_SEIM_READ_VAL; + seip->sei_rd_mask |= SG_SEIM_READ_VAL; + seip->read_value = SG_SEIRV_DEV_SUBMITTED; + if (ioctl(sg_fd, SG_SET_GET_EXTENDED, seip) < 0) { + pr2serr("ioctl(SG_SET_GET_EXTENDED) failed, errno=%d %s\n", errno, + strerror(errno)); + return 1; + } + printf(" %sread_value[SG_SEIRV_DEV_SUBMITTED]= %u\n", cp, + seip->read_value); + memset(seip, 0, sizeof(*seip)); seip->sei_wr_mask |= SG_SEIM_SHARE_FD; seip->sei_rd_mask |= SG_SEIM_SHARE_FD; -- cgit v1.2.3