pub fn fstatfs<Fd: AsFd>(fd: Fd) -> Result<StatFs>
fstatfs(fd)—Queries filesystem statistics for an open file or directory.
fstatfs(fd)
Compared to fstatvfs, this function often provides more information, though it’s less portable.
fstatvfs