linux 中的保留、已用、可用、总磁盘 space

reserve,used,available,total disk space in linux

是否有任何单个 linux 命令或单个系统调用,通过它我可以获得所有 4 个信息(总计、已用、免费、保留)?

我检查了以下内容:

df: does not give reserve disk space
stat(): does not give reserve disk space
statfs(): gives total and free only 

我尝试使用 "tune2fs -l /dev/vda1" 作为保留,但是 tune2fs 和 df 的输出之间存在一些差异 command.The 总计不是已使用、免费和保留的总和。

使用 df 输出进行计算:

reserved=total-used-free