Skip to content
Snippets Groups Projects
Commit aec1746c authored by chrfranke's avatar chrfranke
Browse files

os_openbsd.cpp: Apply conversion to seconds for timeouts in scsi_pass_through

(#1466).

Patch by Martin Ziemer.

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5214 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 54f2cae3
Branches
No related tags found
No related merge requests found
...@@ -2,6 +2,9 @@ $Id$ ...@@ -2,6 +2,9 @@ $Id$
2021-03-24 Martin Ziemer <horrad@horrad.de> 2021-03-24 Martin Ziemer <horrad@horrad.de>
os_openbsd.cpp: Apply conversion to seconds for timeouts in
scsi_pass_through (#1466).
os_openbsd.cpp: Use correct devicename for autodetection (#1465). os_openbsd.cpp: Use correct devicename for autodetection (#1465).
2021-03-08 Christian Franke <franke@computer.org> 2021-03-08 Christian Franke <franke@computer.org>
... ...
......
...@@ -266,7 +266,7 @@ bool openbsd_scsi_device::scsi_pass_through(scsi_cmnd_io * iop) ...@@ -266,7 +266,7 @@ bool openbsd_scsi_device::scsi_pass_through(scsi_cmnd_io * iop)
sc.databuf = (char *)iop->dxferp; sc.databuf = (char *)iop->dxferp;
sc.datalen = iop->dxfer_len; sc.datalen = iop->dxfer_len;
sc.senselen = iop->max_sense_len; sc.senselen = iop->max_sense_len;
sc.timeout = iop->timeout == 0 ? 60000 : iop->timeout; /* XXX */ sc.timeout = (iop->timeout == 0 ? 60 : iop->timeout) * 1000;
sc.flags = sc.flags =
(iop->dxfer_dir == DXFER_NONE ? SCCMD_READ : (iop->dxfer_dir == DXFER_NONE ? SCCMD_READ :
(iop->dxfer_dir == DXFER_FROM_DEVICE ? SCCMD_READ : SCCMD_WRITE)); (iop->dxfer_dir == DXFER_FROM_DEVICE ? SCCMD_READ : SCCMD_WRITE));
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment