~ubuntu-branches/ubuntu/precise/net-snmp/precise

« back to all changes in this revision

Viewing changes to agent/mibgroup/ucd-snmp/diskio.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2009-11-26 01:27:00 UTC
  • mfrom: (1.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20091126012700-pox7w0a5j2x305h9
Tags: 5.4.2.1~dfsg-3ubuntu1
* Merge from debian testing.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.
    (LP: #426813).
 * Dropped patches:
   - debian/patches/101-fix-ipalias.patch: Applied upstream.
   - debian/patches/99-fix-net-snmp-syslog.patch: Applied upstream.
   - debian/patches/99-fix-perl-counter-in-subagent.patch: Applied upstream.
   - ebian/patches/103-fix-ubuntu-lmsensors.patch: No longer needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
static int      cache_disknr = -1;
53
53
#endif                          /* solaris2 */
54
54
 
55
 
#if defined(aix4) || defined(aix5)
 
55
#if defined(aix4) || defined(aix5) || defined(aix6)
56
56
/*
57
57
 * handle disk statistics via libperfstat
58
58
 */
190
190
    IOMasterPort(bootstrap_port, &masterPort);
191
191
#endif
192
192
 
193
 
#if defined(aix4) || defined(aix5)
 
193
#if defined(aix4) || defined(aix5) || defined(aix6)
194
194
    /*
195
195
     * initialize values to gather information on first request
196
196
     */
811
811
      *var_len = strlen(head.indices[indx].name);
812
812
      return (u_char *) head.indices[indx].name;
813
813
    case DISKIO_NREAD:
814
 
      long_ret = head.indices[indx].rsect*512;
 
814
      long_ret = (head.indices[indx].rsect*512) & 0xffffffff;
815
815
      return (u_char *) & long_ret;
816
816
    case DISKIO_NWRITTEN:
817
 
      long_ret = head.indices[indx].wsect*512;
 
817
      long_ret = (head.indices[indx].wsect*512) & 0xffffffff;
818
818
      return (u_char *) & long_ret;
819
819
    case DISKIO_READS:
820
 
      long_ret = head.indices[indx].rio;
 
820
      long_ret = head.indices[indx].rio & 0xffffffff;
821
821
      return (u_char *) & long_ret;
822
822
    case DISKIO_WRITES:
823
 
      long_ret = head.indices[indx].wio;
 
823
      long_ret = head.indices[indx].wio & 0xffffffff;
824
824
      return (u_char *) & long_ret;
825
825
    case DISKIO_NREADX:
826
826
      *var_len = sizeof(struct counter64);
1067
1067
#endif                          /* darwin */
1068
1068
 
1069
1069
 
1070
 
#if defined(aix4) || defined(aix5)
 
1070
#if defined(aix4) || defined(aix5) || defined(aix6)
1071
1071
/*
1072
1072
 * collect statistics for all disks
1073
1073
 */