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

34d7f3
1125793 - [RHEL6] net-snmp "storageUseNFS 2" option does not report NFS mount as "Fixed Disks"
34d7f3
1193006 - net-snmp "storageUseNFS 2" option does not report NFS mount as "Fixed Disks"
34d7f3
34d7f3
commit e69e09f8c316cc1bf2456cdc837c487ba3b03837
34d7f3
Author: Jan Safranek <jsafranek@users.sourceforge.net>
34d7f3
Date:   Mon Jan 26 13:29:49 2015 +0100
34d7f3
34d7f3
    Fixed storageUseNFS functionality in hrStorageTable.
34d7f3
34d7f3
diff --git a/agent/mibgroup/host/hrh_storage.c b/agent/mibgroup/host/hrh_storage.c
34d7f3
index 96b7198..61ead75 100644
34d7f3
--- a/agent/mibgroup/host/hrh_storage.c
34d7f3
+++ b/agent/mibgroup/host/hrh_storage.c
34d7f3
@@ -384,7 +384,7 @@ really_try_next:
34d7f3
         return (u_char *) & long_return;
34d7f3
     case HRSTORE_TYPE:
34d7f3
         if (store_idx > NETSNMP_MEM_TYPE_MAX)
34d7f3
-            if (HRFS_entry->flags & NETSNMP_FS_FLAG_REMOTE )
34d7f3
+            if (HRFS_entry->flags & NETSNMP_FS_FLAG_REMOTE && storageUseNFS == 1)
34d7f3
                 storage_type_id[storage_type_len - 1] = 10;     /* Network Disk */
34d7f3
             else if (HRFS_entry->flags & NETSNMP_FS_FLAG_REMOVE )
34d7f3
                 storage_type_id[storage_type_len - 1] = 5;      /* Removable Disk */