(cherry picked from commit 1d7a63fb8fbdc2fb53744ee1be13b76278fda03d)
@@ -432,7 +432,7 @@ uint64_t DirAccessUnix::get_space_left() {
return 0;
};
- return vfs.f_bfree * vfs.f_bsize;
+ return (uint64_t)vfs.f_bavail * (uint64_t)vfs.f_frsize;
#else
// FIXME: Implement this.