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

opening files with o_direct fails on kernel versions >= 5.15 #14

Open
abbbi opened this issue Sep 24, 2022 · 0 comments
Open

opening files with o_direct fails on kernel versions >= 5.15 #14

abbbi opened this issue Sep 24, 2022 · 0 comments

Comments

@abbbi
Copy link
Owner

abbbi commented Sep 24, 2022

On kernels >= 5.15 module uses ram_aops instead of nullfs_aops structure:

https://github.com/abbbi/nullfsvfs/blob/master/nullfs.c#L342

which does not expose noop direct_io (notably becuase O_DIRECT does not make sense on a FS with memory backend). Newer kenerl versions do not expose simple_readpage etc.. so the only way would be to redefine them, not sure if thats worth the hassle.

@abbbi abbbi changed the title test for o_direct fails on ubuntu-latest opening files with o_direct fails on ubuntu-latest (kernel > = 5.15) Sep 24, 2022
abbbi added a commit that referenced this issue Sep 25, 2022
@abbbi abbbi changed the title opening files with o_direct fails on ubuntu-latest (kernel > = 5.15) opening files with o_direct fails kernels >= 5.15 Sep 25, 2022
@abbbi abbbi changed the title opening files with o_direct fails kernels >= 5.15 opening files with o_direct fails on kernel versions >= 5.15 Sep 25, 2022
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