[net-snmp] added btrfs support to hrFSTable Resolves: #965348 Removed direct dependency on mysql-libs Resolves:

Jan Šafránek jsafrane at fedoraproject.org
Tue May 21 07:27:21 UTC 2013


commit df087c33e0dca2e77c02d47aacdfffb4d8ad03c8
Author: Jan Safranek <jsafrane at redhat.com>
Date:   Tue May 21 09:27:07 2013 +0200

    added btrfs support to hrFSTable
    Resolves: #965348
    Removed direct dependency on mysql-libs
    Resolves: #962739

 net-snmp-5.7.2-btrfs.patch |   32 ++++++++++++++++++++++++++++++++
 net-snmp.spec              |    8 ++++++--
 2 files changed, 38 insertions(+), 2 deletions(-)
---
diff --git a/net-snmp-5.7.2-btrfs.patch b/net-snmp-5.7.2-btrfs.patch
new file mode 100644
index 0000000..db0afbd
--- /dev/null
+++ b/net-snmp-5.7.2-btrfs.patch
@@ -0,0 +1,32 @@
+Bug 965348 - HOST-RESOURCES-MIB::hrFS* not includes btrfs
+
+commit da1fef382591ff45dc92eb3b95a6bfeff9ecfa4f
+Author: Jan Safranek <jsafranek at users.sourceforge.net>
+Date:   Tue May 21 09:13:41 2013 +0200
+
+    CHANGES: snmpd: Added btrfs support to hrFSTable
+
+diff -up net-snmp-5.7.2/agent/mibgroup/hardware/fsys/fsys_mntent.c.btrfs net-snmp-5.7.2/agent/mibgroup/hardware/fsys/fsys_mntent.c
+--- net-snmp-5.7.2/agent/mibgroup/hardware/fsys/fsys_mntent.c.btrfs	2012-10-10 00:28:58.000000000 +0200
++++ net-snmp-5.7.2/agent/mibgroup/hardware/fsys/fsys_mntent.c	2013-05-21 09:22:11.457405066 +0200
+@@ -139,6 +139,7 @@ _fsys_type( char *typename )
+               !strcmp(typename, MNTTYPE_REISERFS) ||
+               !strcmp(typename, MNTTYPE_OCFS2) ||
+               !strcmp(typename, MNTTYPE_CVFS) ||
++              !strcmp(typename, MNTTYPE_BTRFS) ||
+               !strcmp(typename, MNTTYPE_LOFS))
+        return NETSNMP_FS_TYPE_OTHER;
+ 
+diff -up net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h.btrfs net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h
+--- net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h.btrfs	2012-10-10 00:28:58.000000000 +0200
++++ net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h	2013-05-21 09:22:33.758303373 +0200
+@@ -142,6 +142,9 @@
+ #ifndef MNTTYPE_CVFS
+ #define MNTTYPE_CVFS     "cvfs"
+ #endif
++#ifndef MNTTYPE_BTRFS
++#define MNTTYPE_BTRFS     "btrfs"
++#endif
+ 
+ /*
+  *  File systems to skip
diff --git a/net-snmp.spec b/net-snmp.spec
index e41b774..b0e3201 100644
--- a/net-snmp.spec
+++ b/net-snmp.spec
@@ -11,7 +11,7 @@
 Summary: A collection of SNMP protocol tools and libraries
 Name: net-snmp
 Version: 5.7.2
-Release: 11%{?dist}
+Release: 12%{?dist}
 Epoch: 1
 
 License: BSD
@@ -39,6 +39,7 @@ Patch6: net-snmp-5.7.2-systemd.patch
 Patch7: net-snmp-5.7.2-python-ipaddress-size.patch
 Patch8: net-snmp-5.7.2-create-user-multilib.patch
 Patch9: net-snmp-5.7.2-autoreconf.patch
+Patch10: net-snmp-5.7.2-btrfs.patch
 
 Requires(post): chkconfig
 Requires(preun): chkconfig
@@ -48,7 +49,6 @@ Requires(preun): initscripts
 Requires(preun): coreutils
 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
 Requires: %{name}-agent-libs = %{epoch}:%{version}-%{release}
-Requires: mysql-libs
 # This is actually needed for the %%triggerun script but Requires(triggerun)
 # is not valid.  We can use %%post because this particular %triggerun script
 # should fire just after this package is installed.
@@ -203,6 +203,7 @@ cp %{SOURCE12} .
 %patch7 -p1 -b .ipaddress-size
 %patch8 -p1 -b .multilib
 %patch9 -p1 -b .autoreconf
+%patch10 -p1 -b .btrfs
 
 %ifarch sparc64 s390 s390x
 # disable failing test - see https://bugzilla.redhat.com/show_bug.cgi?id=680697
@@ -504,6 +505,9 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_initrddir}/snmptrapd
 
 %changelog
+* Tue May 21 2013 Jan Safranek <jsafrane at redhat.com> - 1:5.7.2-12
+- added btrfs support to hrFSTable (#965348)
+
 * Mon May  6 2013 Jan Safranek <jsafrane at redhat.com> - 1:5.7.2-11
 - added aarch64 to multilib architectures.
 


More information about the scm-commits mailing list