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

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