aboutsummaryrefslogtreecommitdiff
path: root/testing/sg_tst_ioctl.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2019-05-01 15:36:08 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2019-05-01 15:36:08 +0000
commit3a5deb427c87030be41c99aa0b3fa26d9d79ec67 (patch)
tree2361460fc620be67749e562bcc644af77848abd1 /testing/sg_tst_ioctl.c
parentc3da9a6b41cbae7940180645721a35becdd5bc99 (diff)
downloadsg3_utils-3a5deb427c87030be41c99aa0b3fa26d9d79ec67.tar.gz
sg_vpd: add --examine option; gcc-9: suppress warnings; more testing work
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@821 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'testing/sg_tst_ioctl.c')
-rw-r--r--testing/sg_tst_ioctl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/sg_tst_ioctl.c b/testing/sg_tst_ioctl.c
index 063fe94a..2dd23c2d 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.08 20190419";
+static const char * version_str = "Version: 1.09 20190430";
#define INQ_REPLY_LEN 128
#define INQ_CMD_LEN 6
@@ -256,7 +256,10 @@ tst_ioctl(const char * fnp, int sg_fd, const char * fn2p, int sg_fd2,
seip->ctl_flags_rd_mask |= SG_CTL_FLAGM_UNSHARE;
seip->ctl_flags_rd_mask |= SG_CTL_FLAGM_MASTER_FINI;
seip->ctl_flags_rd_mask |= SG_CTL_FLAGM_MASTER_ERR;
+ seip->ctl_flags_wr_mask |= SG_CTL_FLAGM_NO_DURATION;
+ seip->ctl_flags_rd_mask |= SG_CTL_FLAGM_NO_DURATION;
seip->ctl_flags |= SG_CTL_FLAGM_TIME_IN_NS;
+ seip->ctl_flags |= SG_CTL_FLAGM_NO_DURATION;
if (ioctl(sg_fd, SG_SET_GET_EXTENDED, seip) < 0) {
pr2serr("ioctl(SG_SET_GET_EXTENDED) failed, errno=%d %s\n", errno,
@@ -301,6 +304,9 @@ tst_ioctl(const char * fnp, int sg_fd, const char * fn2p, int sg_fd2,
if (SG_CTL_FLAGM_MASTER_ERR & seip->ctl_flags_rd_mask)
printf(" %sMASTER_ERR: %s\n", cp,
(SG_CTL_FLAGM_MASTER_ERR & cflags) ? "true" : "false");
+ if (SG_CTL_FLAGM_NO_DURATION & seip->ctl_flags_rd_mask)
+ printf(" %sNO_DURATION: %s\n", cp,
+ (SG_CTL_FLAGM_NO_DURATION & cflags) ? "true" : "false");
}
if (SG_SEIM_MINOR_INDEX & seip->sei_rd_mask)
printf(" %sminor_index: %u\n", cp, seip->minor_index);