Skip to content
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

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

devnexen
Copy link
Contributor

Set/clear the amount of read ahead for the file descriptor.

@devnexen devnexen force-pushed the fbsd_fcntl_readahead branch from f4c08e4 to 154d9a0 Compare December 23, 2024 19:11
Comment on lines 815 to 818
// 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.
Copy link
Member

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?

Copy link
Contributor Author

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),
Copy link
Member

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?

Copy link
Contributor Author

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.

@devnexen devnexen force-pushed the fbsd_fcntl_readahead branch from 154d9a0 to 2f9ecee Compare December 24, 2024 00:01
Set/clear the amount of read ahead for the file descriptor.
@devnexen devnexen force-pushed the fbsd_fcntl_readahead branch from 2f9ecee to ad7bd99 Compare December 24, 2024 00:05
@SteveLauC
Copy link
Member

Thanks

@SteveLauC SteveLauC added this pull request to the merge queue Dec 24, 2024
Merged via the queue into nix-rust:master with commit 08af3f8 Dec 24, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants