Use f_bavail to query available space. Not f_bfree.
f_bfree space might not be usable. In practice we see failures in big disks because f_bfree is over 2GB and f_bavail is 0. We get ENOSPC if writing on disk then.
Loading
Please register or sign in to comment