Date: Mon, 8 Oct 2012 09:45:47 GMT From: Leonid Nevecherya <nlv@imbera.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/172480: [patch] sysutils/smartmontools: Fix AUTO in daily_status_smart_devices patameter Message-ID: <201210080945.q989jlFh026795@red.freebsd.org> Resent-Message-ID: <201210080950.q989oA9x017981@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 172480 >Category: ports >Synopsis: [patch] sysutils/smartmontools: Fix AUTO in daily_status_smart_devices patameter >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Oct 08 09:50:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Leonid Nevecherya >Release: >Organization: >Environment: FreeBSD XXXX 8.3-RELEASE-p3 FreeBSD 8.3-RELEASE-p3 >Description: Fix AUTO in daily_status_smart_devices patameter of daily script. It`s remove SMART check of ATA Array (ar* devices). >How-To-Repeat: Set daily_status_smart_devices=AUTO in periodic.conf on host with ar* devices. >Fix: Add patch. It's remove ar* devices from auto generated list. Patch attached with submission follows: diff -ruN /usr/ports/sysutils/smartmontools/files/smart.in sysutils/smartmontools/files/smart.in --- /usr/ports/sysutils/smartmontools/files/smart.in 2011-12-02 00:53:31.000000000 +0400 +++ sysutils/smartmontools/files/smart.in 2012-10-08 13:37:34.000000000 +0400 @@ -16,7 +16,7 @@ case "${daily_status_smart_devices}" in # XXX AUTO mode selects only regular ad/da disks [Aa][Uu][Tt][Oo]) - daily_status_smart_devices="$(sysctl -n kern.disks | sed -E 's/[[:<:]]cd[0-9]+//g')" + daily_status_smart_devices="$(sysctl -n kern.disks | sed -E 's/[[:<:]](cd|ar)[0-9]+//g')" ;; *) ;; esac >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210080945.q989jlFh026795>