I am using indicator-multiload and would like it to show the Free Disk Space in my Partitions.
So, I went through the code, and found out that the author was parsing the contents of
/sys/block/(device)/stat to get the read and write speeds. (where 'device' can be sda etc.).
I looked around
sys/block and couldn't find anything useful that could give me info about free space in a disk. Although
/sys/block/sda/size gives the total available space, I couldn't find an entry for free space.
I want to know if there is a file in the linux system which explicitly stores free space information.
If not, can you suggest a way on how I could get an indicator with stats on free disk space.