Is there a file system usage measurement in any /sys or /proc files? Similarly for processes, besides diskstats is there a way to read a single number that reports total disk capacity consumed?
I ask because I need it for a low profile program and don't want the overhead of a system call - I'm aware of $df and $du, if necessary I'll read the source code for the answer but hoping if there is an alternative someone will know!