bin/129630: [bsnmpd] Teach hostres module about ZFS

Ulrich Spoerlein uspoerlein at gmail.com
Sun Dec 14 02:40:18 PST 2008


>Number:         129630
>Category:       bin
>Synopsis:       [bsnmpd] Teach hostres module about ZFS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 14 10:40:17 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
>Description:
Right now, bsnmpd is not exporting any information about mounted
ZFS filesystems. The fix is trivial, sadly we have to map ZFS to the
OtherFS OID as there seems to be no standard yet (if so, please point
me to it and I'll update the patch accordingly.
>How-To-Repeat:
>Fix:

--- bsnmpd.diff begins here ---
Index: usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c
===================================================================
RCS file: /tank/ncvs/src/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c,v
retrieving revision 1.3
diff -u -p -r1.3 hostres_fs_tbl.c
--- usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c	14 Jul 2006 09:07:56 -0000	1.3
+++ usr.sbin/bsnmpd/modules/snmp_hostres/hostres_fs_tbl.c	14 Dec 2008 10:27:43 -0000
@@ -131,6 +131,7 @@ static const struct {
 	const struct asn_oid	*oid;	/* the OID to return */
 } fs_type_map[] = {
 	{ "ufs",	&OIDX_hrFSBerkeleyFFS_c },
+	{ "zfs",	&OIDX_hrFSOther_c },
 	{ "cd9660",	&OIDX_hrFSiso9660_c },
 	{ "nfs",	&OIDX_hrFSNFS_c },
 	{ "ext2fs",	&OIDX_hrFSLinuxExt2_c },
--- bsnmpd.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list