Hi there,
It looks to me as though statfs gives you the raw disk figures, but df takes into account the 5% of space reserved to root for emergencies.
HTH, Chris
On 27 Oct 2004, at 19:56, [EMAIL PROTECTED] wrote:
Hello,
Though this is a more generalized doubt, I ran into this situation when I used the net-snmp for implementing my MIB.
I've a query object in my MIB for used disk space, for a particular partition in my device.
I use "statfs" for getting the free disk space...
When I compare the result I get from statfs to the result from "df", I could see a difference in the values...
df returns 92%, while statfs() returns 87%. Why the difference?? Does this have anything to do with net-snmp?? Any light would be appreciated...
--Haris
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
-- Chris Boot [EMAIL PROTECTED] http://www.bootc.net/
If you find an attachment called smime.p7s, please ignore it.
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
Net-snmp-users mailing list
[EMAIL PROTECTED]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
