From d468939fabab714a08d5daa929a6e622d07ec292 Mon Sep 17 00:00:00 2001 From: ivoras Date: Mon, 24 Oct 2011 12:59:39 +0000 Subject: Apparently, "ada" drives are better treated similarly to "da" drives. --- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_diskstorage_tbl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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) { -- cgit v1.1