]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r248707:
authortrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 Apr 2013 19:50:15 +0000 (19:50 +0000)
committertrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 Apr 2013 19:50:15 +0000 (19:50 +0000)
commitaa87cb26423f9ab923ddda3e1e698447648ff563
treecf893d7244ad94cef38b2a147c701ee744d2d2c7
parent6454e46426b5f77d1e03480edf5d852dea41762f
MFC r248707:

hrStorageSize and hrStorageUsed are 32 bit integers, reporting a fs
size and usage in hrStorageAllocationUnits. If the file system has
more than 2^31 allocations it can not be shown correctly and the
meters are useless.

In such cases follow net-snmp behaviour and increase
hrStorageAllocationUnits so the values fit under INT_MAX.

PR: bin/177183
Submitted by: Eugene Grosbein egrosbein rdtc.ru

git-svn-id: svn://svn.freebsd.org/base/stable/8@249272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c