mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-30 10:38:37 +00:00
- Resolve issue where local filesystems were displayed as remote file systems.
PR: ports/164817 Submitted by: Rainer Duffner <rainer@ultra-secure.de> Obtained from: Mel Flynn <rflynn@acsalaska.net>
This commit is contained in:
parent
1dc2b02630
commit
0132205daa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=291934
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= snmp
|
||||
PORTVERSION= 5.7.1
|
||||
PORTREVISION= 4
|
||||
PORTREVISION= 5
|
||||
CATEGORIES= net-mgmt ipv6
|
||||
MASTER_SITES= SF/net-${PORTNAME}/net-${PORTNAME}/${PORTVERSION}
|
||||
PKGNAMEPREFIX= net-
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- ./agent/mibgroup/hardware/fsys/fsys_getfsstats.c.orig 2011-09-28 00:53:47.000000000 -0400
|
||||
+++ ./agent/mibgroup/hardware/fsys/fsys_getfsstats.c 2011-12-07 17:33:47.000000000 -0500
|
||||
--- agent/mibgroup/hardware/fsys/fsys_getfsstats.c.orig 2011-09-27 20:53:47.000000000 -0800
|
||||
+++ agent/mibgroup/hardware/fsys/fsys_getfsstats.c 2012-02-20 01:39:38.000000000 -0900
|
||||
@@ -150,9 +150,9 @@
|
||||
if (!entry)
|
||||
continue;
|
||||
@ -12,9 +12,21 @@
|
||||
entry->device[sizeof(entry->device)-1] = '\0';
|
||||
entry->units = stats[i].f_bsize; /* or f_frsize */
|
||||
entry->size = stats[i].f_blocks;
|
||||
@@ -175,4 +175,5 @@
|
||||
@@ -164,7 +164,7 @@
|
||||
entry->type = _fs_type( stats[i].f_fstypename );
|
||||
entry->flags |= NETSNMP_FS_FLAG_ACTIVE;
|
||||
|
||||
- if (! stats[i].NSFS_FLAGS & MNT_LOCAL ) {
|
||||
+ if (! (stats[i].NSFS_FLAGS & MNT_LOCAL) ) {
|
||||
entry->flags |= NETSNMP_FS_FLAG_REMOTE;
|
||||
}
|
||||
if ( stats[i].NSFS_FLAGS & MNT_RDONLY ) {
|
||||
@@ -174,5 +174,8 @@
|
||||
entry->flags |= NETSNMP_FS_FLAG_BOOTABLE;
|
||||
}
|
||||
netsnmp_fsys_calculate32(entry);
|
||||
+ DEBUGMSGTL(("fsys:path", "flags on entry %s: 0x%08x\n", entry->path,
|
||||
+ entry->flags));
|
||||
}
|
||||
+ free(stats);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- ./agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-28 00:53:47.000000000 -0400
|
||||
+++ ./agent/mibgroup/ucd-snmp/disk_hw.c 2012-02-13 11:07:08.000000000 -0500
|
||||
--- agent/mibgroup/ucd-snmp/disk_hw.c.orig 2011-09-27 20:53:47.000000000 -0800
|
||||
+++ agent/mibgroup/ucd-snmp/disk_hw.c 2012-02-19 16:21:29.000000000 -0900
|
||||
@@ -137,6 +137,7 @@
|
||||
if (disks) {
|
||||
free( disks );
|
||||
@ -8,6 +8,15 @@
|
||||
}
|
||||
allDisksIncluded = 0;
|
||||
}
|
||||
@@ -189,7 +190,7 @@
|
||||
if ( entry ) {
|
||||
entry->minspace = minspace;
|
||||
entry->minpercent = minpercent;
|
||||
- entry->flags |= ~NETSNMP_FS_FLAG_UCD;
|
||||
+ entry->flags |= NETSNMP_FS_FLAG_UCD;
|
||||
disks[numdisks++] = entry;
|
||||
}
|
||||
}
|
||||
@@ -321,7 +322,7 @@
|
||||
|
||||
switch (vp->magic) {
|
||||
|
Loading…
Reference in New Issue
Block a user