Compute available disk space in Files.app by statvfs.f_bavail, not .f_bfree.
f_bavail is more appropriate because it tells the amount of disk space that is available to a non-privileged user. (Writing to Downloads/ indeed stops working if f_bavail=0.) BUG=268705 TEST=Checked the gear menu value matches with what chrome:drive-internals shows. R=hidehiko@chromium.org Review URL: https://codereview.chromium.org/22256004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215815 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment