-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap libc::statfs #928
Wrap libc::statfs #928
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should
- Eliminate the
_new
variants and make the regular functions return by result instead of by return arguments. - Don't assume anything about
/proc
. - Don't hardcode magic numbers
- Lift the
#[cfg()]
restriction in src/sys/mod.rs so statfs will build on every platform. This will require a little bit of research on your part to get the different fields right on different platforms.
Yeah, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The FsType
looks good. Now you just need to make it work on all platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the future, please don't squash your commits until the end. It makes reviewing incremental changes harder.
Since it's been so long since the original submission, I'm going to ask that you rebase onto master before I review it. Be sure to rebase, don't just merge. Merging makes the changes harder to review. And I probably won't have time to review before Sunday night. If I still haven't reviewed by Monday, feel free to ping me. |
Hi, @asomers . Any updates on reviewing my changes? |
|
It looks like this is still a WIP; let me know when you're ready for a review. Also, you'll need to rebase. Be sure to fix the CHANGELOG entry when you rebase. |
@asomers I'm ready for review |
@asomers Ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good now. But I want to merge #1035 first.
Ok, no problem. I'll fix conflicts when #1035 is merged. |
Ok, 1035 is merged. You should be able to rebase now. You should no longer need |
Please squash your commits. |
@asomers any updates on merging this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
Build succeeded
|
Fix for #926