commit | 6c917630660164bb28d57f31b970b38591c0b8b1 | [log] [tgz] |
---|---|---|
author | sriramsr <sriramsr@chromium.org> | Wed Jul 20 02:57:37 2016 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jul 20 02:59:50 2016 |
tree | e24e24c405e5bdc83938c1ca8d3fe0e53a8dd469 | |
parent | e4a230ce73340f989f271ae6a8f0117f2b2e235f [diff] |
Return correct disk free/available size when FS is mounted with size = 0 When tmpfs is mounted with size = 0 (i.e. without any limit), then statvfs will return 0 for f_bfree, f_bavail, and f_blocks. Catch this case and return max_int64 instead. BUG=628710 Review-Url: https://codereview.chromium.org/2152283003 Cr-Commit-Position: refs/heads/master@{#406473}