Module Name: src Committed By: apb Date: Sat Nov 10 11:01:52 UTC 2012
Modified Files: src/usr.sbin/pstat: pstat.c Log Message: The number of active vnodes may grow in between the sysctl call that figures out the size, and the sysctl call that fetches the data. Previously, any growth at all would have resulted in this error message: pstat: sysctl: KERN_VNODE: Cannot allocate memory Now allow for growth of 100 vnodes, or 5%, or both. Growth in excess of 2% or 6000 vnodeshas been observed in practice. Also ignore ENOMEM from the second sysctl call, in case the growth was even more than we anticipated. To generate a diff of this commit: cvs rdiff -u -r1.119 -r1.120 src/usr.sbin/pstat/pstat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.