Blame SOURCES/net-snmp-5.7.2-btrfs.patch

8a419f
Bug 965348 - HOST-RESOURCES-MIB::hrFS* not includes btrfs
8a419f
1006758 - HOST-RESOURCES-MIB::hrFS* not includes btrfs
8a419f
8a419f
commit da1fef382591ff45dc92eb3b95a6bfeff9ecfa4f
8a419f
Author: Jan Safranek <jsafranek@users.sourceforge.net>
8a419f
Date:   Tue May 21 09:13:41 2013 +0200
8a419f
8a419f
    CHANGES: snmpd: Added btrfs support to hrFSTable
8a419f
8a419f
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
8a419f
--- net-snmp-5.7.2/agent/mibgroup/hardware/fsys/fsys_mntent.c.btrfs	2013-09-11 12:12:54.586891414 +0200
8a419f
+++ net-snmp-5.7.2/agent/mibgroup/hardware/fsys/fsys_mntent.c	2013-09-11 12:12:41.565947166 +0200
8a419f
@@ -141,6 +141,7 @@ _fsys_type( char *typename )
8a419f
               !strcmp(typename, MNTTYPE_CVFS) ||
8a419f
               !strcmp(typename, MNTTYPE_SIMFS) ||
8a419f
               !strcmp(typename, MNTTYPE_VZFS) ||
8a419f
+              !strcmp(typename, MNTTYPE_BTRFS) ||
8a419f
               !strcmp(typename, MNTTYPE_LOFS))
8a419f
        return NETSNMP_FS_TYPE_OTHER;
8a419f
 
8a419f
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
8a419f
--- net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h.btrfs	2013-09-11 12:00:15.283166852 +0200
8a419f
+++ net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h	2013-09-11 12:00:15.284166847 +0200
8a419f
@@ -148,6 +148,9 @@
8a419f
 #ifndef MNTTYPE_VZFS
8a419f
 #define MNTTYPE_VZFS     "vzfs"
8a419f
 #endif
8a419f
+#ifndef MNTTYPE_BTRFS
8a419f
+#define MNTTYPE_BTRFS    "btrfs"
8a419f
+#endif
8a419f
 
8a419f
 /*
8a419f
  *  File systems to skip