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

Add support for O_DIRECT #7

Open
laurynas-biveinis opened this issue Aug 22, 2017 · 1 comment
Open

Add support for O_DIRECT #7

laurynas-biveinis opened this issue Aug 22, 2017 · 1 comment

Comments

@laurynas-biveinis
Copy link
Contributor

O_DIRECT is documented to "Try to minimize cache effects of the I/O to and from this file.", thus it might be doing the opposite in libeatmydata might be desirable. A challenge would be to check for alignment / block size violations, for which EINVAL should be returned instead of performing the I/O in buffered mode.

@laurynas-biveinis
Copy link
Contributor Author

(the implementation should include fcntl(fd, F_SETFL, O_DIRECT) support too, not only open flag)

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

No branches or pull requests

1 participant