Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2008 11:36:35 +0100 (CET)
From:      Ulrich Spoerlein <uspoerlein@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Hartmut Brandt <harti@FreeBSD.org>
Subject:   bin/129630: [bsnmpd] Teach hostres module about ZFS
Message-ID:  <200812141036.mBEAaZbe010874@coyote.spoerlein.net>
Resent-Message-ID: <200812141040.mBEAeHLM092252@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812141036.mBEAaZbe010874>