diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-02-15 01:09:56 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2002-02-15 01:09:56 +0000 |
commit | 0c6f2b1256d6d877b5fedbd491649d4285f0d618 (patch) | |
tree | e9dad95dfe07c3d4ccf721a12af103088eedc59e /net/net-snmp/files/patch-hr_disk.c | |
parent | Pass the maintainership wand to Jason Harris <jharris@widomaker.com> (diff) |
o Add WITH_SNMP_DISKIO knob to collect diskio statistics (will turn on by
default after some period).
o Support 4.x and 5.x for host/hr_disk.c.
o Add simple patch to wrap function decraration in HAVE_LPSTAT correctly.
Notes
Notes:
svn path=/head/; revision=54717
Diffstat (limited to 'net/net-snmp/files/patch-hr_disk.c')
-rw-r--r-- | net/net-snmp/files/patch-hr_disk.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/net-snmp/files/patch-hr_disk.c b/net/net-snmp/files/patch-hr_disk.c new file mode 100644 index 000000000000..ea1ed0adf096 --- /dev/null +++ b/net/net-snmp/files/patch-hr_disk.c @@ -0,0 +1,12 @@ +--- agent/mibgroup/host/hr_disk.c.orig Mon Nov 19 13:48:10 2001 ++++ agent/mibgroup/host/hr_disk.c Tue Feb 12 22:37:43 2002 +@@ -178,6 +178,9 @@ + #elif defined(solaris2) + Add_HR_Disk_entry ( "/dev/rdsk/c%dt%dd0s%d", 0, 1, 0, 15, "/dev/rdsk/c%dt%dd0s0", 0, 7 ); + Add_HR_Disk_entry ( "/dev/rdsk/c%dd%ds%d", 0, 1, 0, 15, "/dev/rdsk/c%dd%ds0", 0, 7 ); ++#elif defined(__FreeBSD__) && __FreeBSD__ >= 4 ++ Add_HR_Disk_entry ( "/dev/ad%ds%d%c", 0, 1, 1, 4, "/dev/ad%ds%d", 'a', 'h'); ++ Add_HR_Disk_entry ( "/dev/da%ds%d%c", 0, 1, 1, 4, "/dev/da%ds%d", 'a', 'h'); + #elif defined(freebsd3) + Add_HR_Disk_entry ( "/dev/wd%ds%d%c", 0, 1, 1, 4, "/dev/wd%ds%d", 'a', 'h'); + Add_HR_Disk_entry ( "/dev/sd%ds%d%c", 0, 1, 1, 4, "/dev/sd%ds%d", 'a', 'h'); |