-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
F_OPEN_DIRECT_IO allow mmap #870
Conversation
See git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse.git#for-next |
277baa0
to
b5360d0
Compare
Thanks @szmi, updated. |
b5360d0
to
7498493
Compare
Is this ready for merging and supported by a released kernel? |
lib/fuse_lowlevel.c
Outdated
@@ -2151,6 +2153,8 @@ void do_init(fuse_req_t req, fuse_ino_t nodeid, const void *inarg) | |||
outargflags |= FUSE_EXPLICIT_INVAL_DATA; | |||
if (se->conn.want & FUSE_CAP_SETXATTR_EXT) | |||
outargflags |= FUSE_SETXATTR_EXT; | |||
if (se->conn.want & FUSE_CAP_DIRECT_IO_ALLOW_MMAP) | |||
outargflags |= FUSE_DIRECT_IO_RELAX; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, just see, I should rename it.
7498493
to
8755a02
Compare
@Nikratio in linux-6.7 the flag is called FUSE_DIRECT_IO_RELAX (but just because Miklos didn't have to send a pull request). fuse-next branch already has the rename (and given the flag was already released, also has a compat define). I already added in that rename here. |
Add in the rename of FUSE_DIRECT_IO_RELAX to FUSE_DIRECT_IO_ALLOW_MMAP.
This is not called FUSE_CAP_DIRECT_IO_RELAX, as the kernel flag FUSE_DIRECT_IO_RELAX is supposed to be renamed to FUSE_DIRECT_IO_ALLOW_MMAP. The corresponding kernel patches just did not land yet.
b2e1472
to
fe389b8
Compare
Looks like there is a generic issue with this test
Going to look into it later. |
bcc0c95
to
fe389b8
Compare
@Nikratio I created a different pull request for the notification test failure, I think easier to review and merge with separate pull requests. |
@Nikratio any reason to hold this back? linux-6.7 is released now, which also includes commit c55e0a55b165202f18cbc4a20650d2e1becd5507
Any reasons not to merge this pull request? |
Apologies. No reason other than lack of time for libfuse on my part. Unfortunately this lack of time also means that when I finally find some time I'm increasingly lacking context, so the reviews take even longer because I need to refresh my mind. I'll take your word for this one. |
No description provided.