-
Notifications
You must be signed in to change notification settings - Fork 93
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
Missing open flag (O_DIRECT) #48
Comments
O_DIRECT is specific to Linux and additionally appears to be deprecated in favor of using raw(8). If you're in desperate need you can bind to open(2) and pass the flag in yourself using the FFI. |
Err... Exactly the other way around: https://lkml.org/lkml/2007/2/16/431. |
Keep searching. They changed their minds after that. On Wed, Oct 7, 2015, 1:10 AM mr-hands [email protected] wrote:
|
Well: config RAW_DRIVER
This is from the latest master. Could you provide some links that O_DIRECT is deprecated? |
I misread the entry in the man page. In any case this is both Linux On Wed, Oct 7, 2015, 7:38 AM mr-hands [email protected] wrote:
|
My FreeBSD 10.1 system has This said, this is an ongoing issue (see #6). I echo Gregory Collins' sentiments from that issue: "The old design is dirty, but we're stuck with it for the moment. I'll be happy to accept a pull request adding the new flags. It will require a major version bump." I will add that this is yet another flag (see the handling of Alternatives include using the FFI (thanks for fielding this one, @glguy), modifying a copy of unix for local use, or using the For the record, I will not get to this in the near future. This, of course, should not rule out pull requests. If and when I do make a change here, it will probably be as a set of major changes which will break backward compatibility and require multiple active versions (similar to the I'll leave this issue open for the rest of the day for general conversation (if desired). Please direct any further technical discussion pertinent to adding |
not part of posix, so should not be added, see http://www.unix.com/man-page/posix/3p/open/ |
I guess no one is pushing for this anymore, so let's close as wontfix. If anyone wants to revive the discussion, open a new ticket. |
Hi guys, I'm in a desperate need for O_DIRECT flag. Could you add it?
The text was updated successfully, but these errors were encountered: