> See the routines "Init_HR_FileSys" and "Get_Next_HR_FileSys" in the
file mentioned above.  Probably lines 592-613 and 695-700 (or somewhere
around there)
>    The variables it uses (aixmnt, aixcurr and HRFS_entry) are defined
towards the top of the same file (line 136ff)

Thanks for the help. I found what I wanted exactly where you said it
should be. I've added the following code to determine if there is a
filesystem without any name. If I find it, I just exit the subroutine
with -1. I've done a basic test on my server, and it works fine. I will
continue with my test to see if everything works, on all servers. When
I've done that, I will post my results in this thread.

Not an official patch, but I hope you can see where I added the code.
agent/mibgroup/host/hr_filesys.c, around line 718

    HRFS_entry->HRFS_name = vmt2dataptr(aixcurr, VMT_OBJECT);
    HRFS_entry->HRFS_mount = vmt2dataptr(aixcurr, VMT_STUB);
    HRFS_entry->HRFS_type = aixcurr->vmt_gfstype;
    HRFS_entry->HRFS_flags = aixcurr->vmt_flags;

+    if( !strcmp(HRFS_entry->HRFS_name, "") ) {
+        if(aixmnt != NULL) free(aixmnt);
+        aixmnt = NULL;
+        HRFS_entry = NULL;
+        return -1;
+    }

    aixcurr = (char *) aixcurr + aixcurr->vmt_length;
    if((char *) aixcurr >= (char *) HRFS_entry) aixcurr = NULL;
    switch(HRFS_entry->HRFS_type) {
#ifdef MNT_NAMEFS

Berry

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to