Closed GoogleCodeExporter closed 9 years ago
Although apparently similar, you're comparing two different things.
disk_partitions() provides information about mount points basically, that's why
it is able to provide actual fs paths.
disk_io_counters() on the other hand provides information about physical raw
disks, against which the concept of "partition" and "path" just can't be
applied.
Linux itself (and other OSes too) is only able to provide IO stats on a
per-disk fashion (e.g. "sda1"), not per-partition (e.g. "/home").
What one might actually do is figure out what partitions (e.g. ["/", "/home"])
are mounted under a certain disk (e.g. "sda1").
Should psutil provide a new function which does that?
Not sure. I'll have to think about that.
Original comment by g.rodola
on 6 Oct 2012 at 10:32
Original comment by g.rodola
on 12 Dec 2012 at 3:35
Closing this out as won't fix.
Original comment by g.rodola
on 21 Apr 2014 at 4:07
Original issue reported on code.google.com by
pit00...@googlemail.com
on 28 Sep 2012 at 3:29