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

test/direct.c open failed because of O_DIRECT flag #76

Open
wtjcn opened this issue Apr 27, 2023 · 0 comments
Open

test/direct.c open failed because of O_DIRECT flag #76

wtjcn opened this issue Apr 27, 2023 · 0 comments

Comments

@wtjcn
Copy link

wtjcn commented Apr 27, 2023

test on x64 ubuntu 20.04 system, hugepage default size = 1G
test/direct.c, this line:

dfd = open(TMPFILE, O_CREAT|O_EXCL|O_DIRECT|O_RDWR, 0600);

will fail, report error:

Bad configuration: Failed to open direct-IO file: Invalid argument

when remove O_DIRECT it will pass this line (failed later when write )

why?

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