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