summaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp/files/patch-disk.c
diff options
context:
space:
mode:
authorSylvio Cesar Teixeira <sylvio@FreeBSD.org>2011-07-27 20:18:35 +0000
committerSylvio Cesar Teixeira <sylvio@FreeBSD.org>2011-07-27 20:18:35 +0000
commitfb8c450edaffc586f12ab11ca424ea1d2d57dc48 (patch)
treea087bc149b2c41a5c4d865acf03e6ed478e9c469 /net-mgmt/net-snmp/files/patch-disk.c
parentUpdate to 1.84 (diff)
- Update to 5.7
PR: ports/158714 Submitted by: Garret Cooper <yanegomi@gmail.com>
Diffstat (limited to 'net-mgmt/net-snmp/files/patch-disk.c')
-rw-r--r--net-mgmt/net-snmp/files/patch-disk.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/net-mgmt/net-snmp/files/patch-disk.c b/net-mgmt/net-snmp/files/patch-disk.c
deleted file mode 100644
index d58269d1e08d..000000000000
--- a/net-mgmt/net-snmp/files/patch-disk.c
+++ /dev/null
@@ -1,31 +0,0 @@
---- agent/mibgroup/ucd-snmp/disk.c.orig 2008-07-05 22:11:22.366362753 +0900
-+++ agent/mibgroup/ucd-snmp/disk.c 2008-07-06 00:32:19.611196878 +0900
-@@ -73,6 +73,9 @@
- #if HAVE_SYS_VFS_H
- #include <sys/vfs.h>
- #endif
-+#if defined(__FreeBSD__) && __FreeBSD_version >= 700055
-+#include <sys/ucred.h>
-+#endif
- #if defined(HAVE_STATFS)
- #if HAVE_SYS_MOUNT_H
- #include <sys/mount.h>
-@@ -491,6 +494,18 @@
- dummy = 1;
- }
- endfsent(); /* close /etc/fstab */
-+#if defined(__FreeBSD__) && __FreeBSD_version >= 700055
-+ {
-+ struct statfs *mntbuf;
-+ size_t i, mntsize;
-+ mntsize = getmntinfo(&mntbuf, MNT_NOWAIT);
-+ for (i = 0; i < mntsize; i++) {
-+ if (strncmp(mntbuf[i].f_fstypename, "zfs", 3) == 0) {
-+ add_device(mntbuf[i].f_mntonname, mntbuf[i].f_mntfromname, -1, minpercent, 0);
-+ }
-+ }
-+ }
-+#endif
- if(dummy != 0) {
- /*
- * dummy clause for else below