summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd
diff options
context:
space:
mode:
authorivoras <ivoras@FreeBSD.org>2011-10-24 12:59:39 +0000
committerivoras <ivoras@FreeBSD.org>2011-10-24 12:59:39 +0000
commitd468939fabab714a08d5daa929a6e622d07ec292 (patch)
tree3315b4179b2976ba73c245c84644da83227f1fca /usr.sbin/bsnmpd
parent4151aacb22764c54d3342d5d0d746f65f82bc5c0 (diff)
downloadFreeBSD-src-d468939fabab714a08d5daa929a6e622d07ec292.zip
FreeBSD-src-d468939fabab714a08d5daa929a6e622d07ec292.tar.gz
Apparently, "ada" drives are better treated similarly to "da" drives.
Diffstat (limited to 'usr.sbin/bsnmpd')
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c
index 82f7992..25ba56a 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c
@@ -476,7 +476,8 @@ disk_OS_get_disks(void)
disk_entry->media = DSM_UNKNOWN;
disk_entry->removable = SNMP_FALSE;
- if (strncmp(disk_entry->dev_name, "da", 2) == 0) {
+ if (strncmp(disk_entry->dev_name, "da", 2) == 0 ||
+ strncmp(disk_entry->dev_name, "ada", 3) == 0) {
disk_entry->media = DSM_HARDDISK;
disk_entry->removable = SNMP_FALSE;
} else if (strncmp(disk_entry->dev_name, "cd", 2) == 0) {
OpenPOWER on IntegriCloud