Is there any single linux command or single system call through which I can get all 4 information(Total,used,free,reserved) ?
I have checked following:
df: does not give reserve disk space
stat(): does not give reserve disk space
statfs(): gives total and free only
I tried using "tune2fs -l /dev/vda1" for reserved ,but there is some discrepancy between outputs of tune2fs and df command.The total is not coming as sum of used,free and reserved.
Do a calculation with df output :
reserved=total-used-free