(cherry picked from commit 1d7a63fb8fbdc2fb53744ee1be13b76278fda03d)
@@ -397,7 +397,7 @@ size_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.