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

Better handle missing O_DIRECT on Illumos #7

Open
rlaager opened this issue Feb 17, 2012 · 0 comments
Open

Better handle missing O_DIRECT on Illumos #7

rlaager opened this issue Feb 17, 2012 · 0 comments

Comments

@rlaager
Copy link

rlaager commented Feb 17, 2012

block/raw-posix.c has this code:
#ifndef O_DIRECT
#define O_DIRECT O_DSYNC
#endif

From what I can tell, that would turn cache=none behavior into that of cache=writethrough. mjt in #kvm suggested an alternative worth considering:

(14:43:29) mjt: directio(fd,DIRECTIO_ON) -- maybe worth to add on solaris instead of O_DIRECT
(14:44:13) mjt: http://docs.oracle.com/cd/E19253-01/816-5168/6mbb3hr6l/index.html

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