Blame SOURCES/net-snmp-5.7.2-hrStorage-fs.patch

8a419f
989498 - vzfs missing in hrStorage in an Virtuozzo Container
8a419f
861152 - simfs missing in hrStorage in an OpenVZ container
8a419f
8a419f
diff -up net-snmp-5.7.2/agent/mibgroup/hardware/fsys/fsys_mntent.c.orig 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.orig	2013-08-12 15:38:17.602977746 +0200
8a419f
+++ net-snmp-5.7.2/agent/mibgroup/hardware/fsys/fsys_mntent.c	2013-08-12 15:38:42.018888560 +0200
8a419f
@@ -139,6 +139,8 @@ _fsys_type( char *typename )
8a419f
               !strcmp(typename, MNTTYPE_REISERFS) ||
8a419f
               !strcmp(typename, MNTTYPE_OCFS2) ||
8a419f
               !strcmp(typename, MNTTYPE_CVFS) ||
8a419f
+              !strcmp(typename, MNTTYPE_SIMFS) ||
8a419f
+              !strcmp(typename, MNTTYPE_VZFS) ||
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.orig net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h
8a419f
--- net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h.orig	2013-08-12 15:38:52.112851691 +0200
8a419f
+++ net-snmp-5.7.2/agent/mibgroup/hardware/fsys/mnttypes.h	2013-08-12 15:39:16.063764218 +0200
8a419f
@@ -142,6 +142,12 @@
8a419f
 #ifndef MNTTYPE_CVFS
8a419f
 #define MNTTYPE_CVFS     "cvfs"
8a419f
 #endif
8a419f
+#ifndef MNTTYPE_SIMFS
8a419f
+#define MNTTYPE_SIMFS     "simfs"
8a419f
+#endif
8a419f
+#ifndef MNTTYPE_VZFS
8a419f
+#define MNTTYPE_VZFS     "vzfs"
8a419f
+#endif
8a419f
 
8a419f
 /*
8a419f
  *  File systems to skip