Extent, b-tree, and other nice file systems (Reiser, XFS, JFS) don't have inodes, so it would be impossible to use 100% of something it doesn't have. This means the result is incorrect for pretty much any file systems except ext2/3.

So instead of just guessing and returning a wrong result it would be nice to check the filesystem type and then return 0% if that partition doesn't use inodes.

-n.

Wes Hardaker wrote:

naoki> Does this mean that f the files free or files available returns 0 then naoki> set percent to 100 ?
naoki> If so, why?


Well, if there are 0 inodes free then the percentage of inodes used
should be 100 right?




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to