-
Notifications
You must be signed in to change notification settings - Fork 677
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
nix::fcntl add FcntlArg::F_READAHEAD for freebsd. #2569
Conversation
f4c08e4
to
154d9a0
Compare
test/test_fcntl.rs
Outdated
// With TMPDIR set with UFS, the vnode name is not entered | ||
// into the name cache thus path is always empty. | ||
// Therefore, we reopen the tempfile a second time for the test | ||
// to pass. |
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.
Why would an empty path fail our test?
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.
ah nvm I think this is copy paste from another test..
/// Set or clear the read ahead amount for sequential access or | ||
/// disable it with 0 or to system default for any value < 0. | ||
#[cfg(target_os = "freebsd")] | ||
F_READAHEAD(c_int), |
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.
Is this something related to the kernel page cache, something used to control the pre-fetch strategy?
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.
it manages file data caching yes. will adjust the comment.
154d9a0
to
2f9ecee
Compare
Set/clear the amount of read ahead for the file descriptor.
2f9ecee
to
ad7bd99
Compare
Thanks |
Set/clear the amount of read ahead for the file descriptor.