*** This bug has been split off bug 147164 *** ------- Original comment by Dave Lehman on 2005.02.04 11:45 ------- Description of problem: Get_FSSize does the following calculation, casting the return value to a long: (from agent/mibgroup/host/hr_filesys.c) 786 long 787 Get_FSSize(char *dev) 788 { ... 810 if (statfs_buf.f_bsize == 512) 811 return (statfs_buf.f_blocks/2); 812 else 813 return (statfs_buf.f_blocks*(statfs_buf.f_bsize/1024)); Since in RHEL4 f_blocks in struct stat can be a 64-bit value, even on 32-bit platforms where long is 32 bits, this can potentially truncate filesystem size with large filesystems. Version-Release number of selected component (if applicable): net-snmp-5.1.2-11 How reproducible: Always if you have a partition that is > 4TB or so. Steps to Reproduce: 1. use the host/hr_partition MIB to display the size of a very large fs 2. 3. Actual results: Size is truncated Expected results: Size is correct Additional info:
*** This bug has been marked as a duplicate of 153101 ***