diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2019-04-11 00:23:23 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2019-04-11 00:23:23 +0000 |
commit | cc730c8de77b8f35d924cb4a01437f7166d85e12 (patch) | |
tree | 8059ed69638442a4ba2df26baf65044d78448c3b /testing/sg_tst_ioctl.c | |
parent | 3905f5ce447048fdc0fe1f9573cab87df97972bb (diff) | |
download | sg3_utils-cc730c8de77b8f35d924cb4a01437f7166d85e12.tar.gz |
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
Diffstat (limited to 'testing/sg_tst_ioctl.c')
-rw-r--r-- | testing/sg_tst_ioctl.c | 14 |
1 files changed, 13 insertions, 1 deletions
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 @@ -393,6 +393,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; #if 1 |