]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r248707:
authortrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 Apr 2013 19:48:40 +0000 (19:48 +0000)
committertrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 8 Apr 2013 19:48:40 +0000 (19:48 +0000)
commit343abc5539d7fd3f34d4155581418290072fbb3a
treebf33a53a2ebf2a32c7ebb5b9019bddc6053c448e
parent2441b12030641ebbbe607b4e61de3764733caf22
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/9@249271 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c