baweaver / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Total / used / free / percent of disk inodes #495

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Proposal
Disk Inode usage monitoring, its essencial for sysadmin. 

On what platforms would this be available?
*nix

Are there existent implementations we can use as an example?
os.statvfs('/some/directory').f_favail or f_ffree
look here:
http://stackoverflow.com/questions/12327798/number-of-free-inodes-on-a-partition
-containing-a-directory

Original issue reported on code.google.com by davi.zu...@gmail.com on 12 Apr 2014 at 11:50

GoogleCodeExporter commented 8 years ago
Mmmm... since this is already exposed via os.statvfs() what's the point in 
duplicating this functionality into psutil?
It made sense to provide a wrapper for total/free/used disk space via 
psutil.disk_usage() because the arithmetic to provide those stats wasn't 
immediately clear (in fact it also ended up into stdlib's shutil module) but 
for these two values (f_favail and f_ffree) it seems easier.

Original comment by g.rodola on 12 Apr 2014 at 5:24

GoogleCodeExporter commented 8 years ago
Well...  I believe the wrapper  standardized way to retrieve values , and
make it easy to add the feature to many users of psutil.
I  think the effort to make is easy,  the classes can be reused,.

Thanks.

Original comment by davi.zu...@gmail.com on 13 Apr 2014 at 10:45

GoogleCodeExporter commented 8 years ago
I don't think it's worth it, sorry.

Original comment by g.rodola on 13 Apr 2014 at 5:32