Blame SOURCES/net-snmp-5.5-mvfs.patch

9a6c41
Bug 1073237 - "skipNFSInHostResources" option in net-snmp does not skip mvfs type filesystem (IBM clearcase)
9a6c41
Bug 1086606
9a6c41
9a6c41
Non-ABI and non-behavior breaking patch.
9a6c41
9a6c41
Upstream (upcoming 5.8.0 release) will report mvfs as 'NFS' filesystem, which
9a6c41
is then skipped when skipNFSInHostResources is set. We can't do so in RHEL
9a6c41
minor updates -> this patch.
9a6c41
9a6c41
diff -up net-snmp-5.5/agent/mibgroup/hardware/fsys/fsys_mntent.c.mvfs net-snmp-5.5/agent/mibgroup/hardware/fsys/fsys_mntent.c
9a6c41
--- net-snmp-5.5/agent/mibgroup/hardware/fsys/fsys_mntent.c.mvfs	2014-04-08 12:56:42.419201488 +0200
9a6c41
+++ net-snmp-5.5/agent/mibgroup/hardware/fsys/fsys_mntent.c	2014-04-11 09:41:13.374316570 +0200
9a6c41
@@ -208,6 +208,12 @@ netsnmp_fsys_arch_load( void )
9a6c41
 
9a6c41
         if ( _fsys_remote( entry->device, entry->type ))
9a6c41
             entry->flags |= NETSNMP_FS_FLAG_REMOTE;
9a6c41
+        /* Mark also mvfs (reported as NETSNMP_FS_TYPE_OTHER) as remote.
9a6c41
+         * In upstream, it's solved as reporting mvfs as NFS
9a6c41
+         * (-> behavior change, forbidden in RHEL minor updates).
9a6c41
+         */
9a6c41
+        if (!strcmp(m->NSFS_TYPE, MNTTYPE_MVFS))
9a6c41
+            entry->flags |= NETSNMP_FS_FLAG_REMOTE;
9a6c41
 #if HAVE_HASMNTOPT
9a6c41
         if (hasmntopt( m, "ro" ))
9a6c41
             entry->flags |= NETSNMP_FS_FLAG_RONLY;