update to smartmontools-7.3, from Martin Ziemer (maintainer)
This commit is contained in:
parent
12c07825c5
commit
7c932a4282
|
@ -1,9 +1,9 @@
|
|||
# $OpenBSD: Makefile,v 1.45 2021/06/15 15:02:30 landry Exp $
|
||||
# $OpenBSD: Makefile,v 1.46 2022/03/01 09:53:01 sthen Exp $
|
||||
|
||||
COMMENT= control and monitor storage systems using SMART
|
||||
|
||||
# XXX at update time check whether C++11 is actually needed
|
||||
DISTNAME= smartmontools-7.2
|
||||
DISTNAME= smartmontools-7.3
|
||||
CATEGORIES= sysutils
|
||||
|
||||
HOMEPAGE= https://www.smartmontools.org/
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (smartmontools-7.2.tar.gz) = XNmKJ+Y5MWi8aq6gcNnhzVUbD4mMUvZrL/Ll0nQRjNY=
|
||||
SIZE (smartmontools-7.2.tar.gz) = 992256
|
||||
SHA256 (smartmontools-7.3.tar.gz) = pUT4gI0MWM+w50JMoYQcuFipdJIrA11QXU5MJIvjois=
|
||||
SIZE (smartmontools-7.3.tar.gz) = 1043932
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
$OpenBSD $
|
||||
|
||||
Upstream r5213: Use correct devicename for autodetection
|
||||
Upstream r5214: Apply conversion to seconds for timeouts in scsi_pass_through
|
||||
Upstream r5215: fix SAT autodetection for the sd* devices
|
||||
|
||||
--- os_openbsd.cpp Tue Oct 6 17:31:47 2020
|
||||
+++ os_openbsd.cpp.patched Wed Apr 7 09:39:24 2021
|
||||
@@ -266,7 +266,7 @@ bool openbsd_scsi_device::scsi_pass_through(scsi_cmnd_
|
||||
sc.databuf = (char *)iop->dxferp;
|
||||
sc.datalen = iop->dxfer_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 =
|
||||
(iop->dxfer_dir == DXFER_NONE ? SCCMD_READ :
|
||||
(iop->dxfer_dir == DXFER_FROM_DEVICE ? SCCMD_READ : SCCMD_WRITE));
|
||||
@@ -582,17 +582,17 @@ smart_device * openbsd_smart_interface::autodetect_sma
|
||||
if (str_starts_with(test_name, net_dev_prefix)) {
|
||||
test_name += strlen(net_dev_prefix);
|
||||
if (!strncmp(net_dev_ata_disk, test_name, strlen(net_dev_ata_disk)))
|
||||
- return get_ata_device(test_name, "ata");
|
||||
+ return get_ata_device(name, "ata");
|
||||
if (!strncmp(net_dev_scsi_disk, test_name, strlen(net_dev_scsi_disk))) {
|
||||
// XXX Try to detect possible USB->(S)ATA bridge
|
||||
// XXX get USB vendor ID, product ID and version from sd(4)/umass(4).
|
||||
// XXX check sat device via get_usb_dev_type_by_id().
|
||||
|
||||
// No USB bridge found, assume regular SCSI device
|
||||
- return get_scsi_device(test_name, "scsi");
|
||||
+ return get_scsi_device(name, "");
|
||||
}
|
||||
if (!strncmp(net_dev_scsi_tape, test_name, strlen(net_dev_scsi_tape)))
|
||||
- return get_scsi_device(test_name, "scsi");
|
||||
+ return get_scsi_device(name, "scsi");
|
||||
}
|
||||
// device type unknown
|
||||
return 0;
|
|
@ -1,4 +1,3 @@
|
|||
@comment $OpenBSD: PLIST,v 1.8 2019/03/01 19:35:34 cwen Exp $
|
||||
@rcscript ${RCDIR}/smartd
|
||||
@man man/man5/smartd.conf.5
|
||||
@man man/man8/smartctl.8
|
||||
|
@ -6,6 +5,14 @@
|
|||
@bin sbin/smartctl
|
||||
@bin sbin/smartd
|
||||
share/doc/smartmontools/
|
||||
share/doc/smartmontools/AUTHORS
|
||||
share/doc/smartmontools/COPYING
|
||||
share/doc/smartmontools/ChangeLog
|
||||
share/doc/smartmontools/ChangeLog-6.0-7.0
|
||||
share/doc/smartmontools/INSTALL
|
||||
share/doc/smartmontools/NEWS
|
||||
share/doc/smartmontools/README
|
||||
share/doc/smartmontools/TODO
|
||||
share/doc/smartmontools/smartd.conf
|
||||
@sample ${SYSCONFDIR}/smartd.conf
|
||||
share/examples/smartmontools/
|
||||
|
@ -15,5 +22,7 @@ share/examples/smartmontools/Example3
|
|||
share/examples/smartmontools/Example4
|
||||
share/examples/smartmontools/Example5
|
||||
share/examples/smartmontools/Example6
|
||||
share/examples/smartmontools/Example7
|
||||
share/examples/smartmontools/Example8
|
||||
share/examples/smartmontools/README
|
||||
share/examples/smartmontools/smartd_warning.sh
|
||||
|
|
Loading…
Reference in New Issue
Block a user