Re: No 'fsys' Code?
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <CAKoMtGauZPZoutB6gA_k06Nv18We4-2j_YOO26YF=4BSgtR0tQ@mail.gmail.com> |
On 31 August 2011 17:48, Michael Urban <[email protected]> wrote: > Ah. Live and learn. Looks like another bug in > disk_hw.c, though: > > case DISKPERCENT: > long_ret = _percent( entry->used, entry->size ); > return ((u_char *) (&long_ret)); > > It should be using the long values, not the 32-bit ones, true? > Of course, _percent takes ints, not long long things, so there > needs to be a different call entirely. Errr - no. Both the _percent() routine and the fsys_info fields use "long longs", so should handle 64-bit values. It's just the process of converting these to 32-bit SNMP values that breaks with Tb filesystems. Dave ------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev _______________________________________________ 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