summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-10-09 02:53:47 +0000
committerscottl <scottl@FreeBSD.org>2004-10-09 02:53:47 +0000
commitbcad702d798cdd2d713e31f5f56c99261d297531 (patch)
tree39c06af27273e92145959cee51378ca8be3bb672 /usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3
parent7e9cf9f93431762f97cd654c8a0db849c20b6a5b (diff)
downloadFreeBSD-src-bcad702d798cdd2d713e31f5f56c99261d297531.zip
FreeBSD-src-bcad702d798cdd2d713e31f5f56c99261d297531.tar.gz
3 important fixes for growfs:
1) ginode() is passed a cylinder group number and inode number. The inode number is relative to the cg. Use this relative number rather than the absolute inode number when searching the cg inode bitmap to see if the inode is allocated. Using the absolute number quickly runs the check off the end of the array and causes invalid inodes to be referenced. 2) ginode() checks the absolute indoe number to make sure that it is greater than ROOTINO. However, the caller loops through all of the possible inode numbers and directly passes in values that are < ROOTINO. Instead of halting the program with an error, just return NULL. 3) When allocating new cylinder groups, growfs was initializing all of the inodes in the group regardless of this only being required for UFS1. Not doing this for UFS2 provides a significant performance increase. These fixes allow growing a filesystem beyond a trivial amount and have been tested to grow an 8GB filesystem to 1.9TB. Much more testing would be appreciated. Obtained from: Sandvine, Inc.
Diffstat (limited to 'usr.sbin/bsnmpd/modules/snmp_netgraph/snmp_netgraph.3')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud