Date: Thu, 21 Jun 2012 07:47:10 GMT From: TAKEMON Takashi <takemon@bamboogate.co.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/169287: [patch] sysutils/munin-node hdd_smartctl can't read ATACAM hdd Message-ID: <201206210747.q5L7lAxS073386@red.freebsd.org> Resent-Message-ID: <201206210750.q5L7o9Km023821@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 169287 >Category: ports >Synopsis: [patch] sysutils/munin-node hdd_smartctl can't read ATACAM hdd >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Jun 21 07:50:09 UTC 2012 >Closed-Date: >Last-Modified: >Originator: TAKEMON Takashi >Release: 8.3 RELEASE >Organization: Bamboogate Co.,Ltd >Environment: FreeBSD zfs.home.mousou.org 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr 9 21:23:18 UTC 2012 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: sysutils/munin-node hdd_smartctl plugin can't read ATACAM hdd. I tryed to make patch this problem. >How-To-Repeat: >Fix: --- ./plugins/node.d/hddtemp_smartctl.in.org 2012-06-21 12:09:10.960144507 +0900 +++ ./plugins/node.d/hddtemp_smartctl.in 2012-06-21 12:11:56.599922538 +0900 @@ -139,7 +139,7 @@ # without probing them. } elsif ($^O eq 'freebsd') { opendir(DEV, '/dev'); - @drives = grep /^ad[0-9]+$/, readdir DEV; + @drives = grep /^ad[0-9]+$|^ada[0-9]+$/, readdir DEV; closedir(DEV); } elsif ($^O eq 'solaris') { @drives = map { s@.*/@@ ; $_ } glob '/dev/rdsk/c*t*d*s2'; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206210747.q5L7lAxS073386>