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

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