Page MenuHomePhabricator

Add disk_space() to llvm::fs

Authored by mehdi_amini on Mar 24 2016, 5:17 PM.

Diff Detail

Event Timeline

mehdi_amini retitled this revision from to Add disk_space() to llvm::fs.
mehdi_amini updated this object.
mehdi_amini added reviewers: bruno, silvas.
mehdi_amini added a subscriber: llvm-commits.

Can you return an ErrorOr or Expected?

Use ErrorOr in the API

rafael accepted this revision.Mar 27 2016, 9:41 AM
rafael added a reviewer: rafael.

LGTM with nits.


Put STATVFS_F_FRSIZE(Vfs) in a variable. It is used 3 times.

git-clang-format the patch.


Avail, Total, Free.

This revision is now accepted and ready to land.Mar 27 2016, 9:41 AM

Is there a reason we need this API?

mehdi_amini marked 2 inline comments as done.
mehdi_amini edited edge metadata.

clang-format (note: git clang-format does not run on .inc, I had to trick it)

Add two notes in the doxygen for Aaron comment (TOUTOC and windows quotas).

ruiu added a subscriber: ruiu.Mar 31 2016, 1:57 PM
ruiu added inline comments.

"reports reports"


const Twine Path -> const Twine &Path?

ruiu added inline comments.Mar 31 2016, 1:58 PM

Ignore this comment -- I misread it.

mehdi_amini closed this revision.Mar 31 2016, 4:29 PM

r265068 (and r265074 for the Twine reference)