# HG changeset patch # User Michael Schloh von Bennewitz # Date 1349375116 -7200 # Node ID 940f3eb5d5e628f00efde87a1a114e2bb36059dc # Parent bf4f2bc9046749791c4db8e21d4846618fe6f5da Enable traversal of all filesystems and ZFS datasets as well. diff -r bf4f2bc90467 -r 940f3eb5d5e6 snmp/snmp.patch --- a/snmp/snmp.patch Thu Oct 04 20:24:28 2012 +0200 +++ b/snmp/snmp.patch Thu Oct 04 20:25:16 2012 +0200 @@ -124,6 +124,23 @@ /* * Setup our pipes */ +Index: agent/mibgroup/host/hrh_filesys.c +diff -Nau agent/mibgroup/host/hrh_filesys.c.orig agent/mibgroup/host/hrh_filesys.c +--- agent/mibgroup/host/hrh_filesys.c.orig 2011-09-28 06:53:47.000000000 +0200 ++++ agent/mibgroup/host/hrh_filesys.c 2012-10-04 14:04:40.672808452 +0200 +@@ -298,9 +298,9 @@ + } else { + HRFS_entry = netsnmp_fsys_get_first(); + } +- /* Skip "inactive" entries */ +- while ( HRFS_entry && !(HRFS_entry->flags & NETSNMP_FS_FLAG_ACTIVE)) +- HRFS_entry = netsnmp_fsys_get_next( HRFS_entry ); ++ /* Skip "inactive" entries - Edit: Avoid ignoring ZFS! */ ++ /*while ( HRFS_entry && !(HRFS_entry->flags & NETSNMP_FS_FLAG_ACTIVE)) ++ HRFS_entry = netsnmp_fsys_get_next( HRFS_entry );*/ + + HRFS_index = (HRFS_entry ? HRFS_entry->idx.oids[0] : -1 ); + return HRFS_index; Index: agent/snmpd.c diff -Nau agent/snmpd.c.orig agent/snmpd.c --- agent/snmpd.c.orig 2011-07-02 00:35:46.000000000 +0200