-
Notifications
You must be signed in to change notification settings - Fork 43
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
FUSE not respecting FileInfo's keep_cache(false) #27
Comments
I can't reproduce this ( As for how to fix it, I'm not sure but my gut tells me that these bits are not what they should be. JNA unfortunately makes it pretty painful (i.e. completely manual) to use structs with bitfields in them. So if I understand correctly, we should have something like this:
Where My second gut feeling is simply your operating system ignoring what FUSE says, which isn't out of the question either. |
Sorry for the late reply---I wanted to test out your theory that it might be OS dependent. I'll see if there are some global options with OS X FUSE that I can use to disable buffering and what, if anything, would need to change with the JNA code to support it. |
(I tried |
First off---thanks for releasing this project and taking the time to put together a few simple examples.
It's exactly what I need and has been great to use thus far.
I need my code to be executed every time something tries to read a file; what's the proper way to tell FUSE not to cache reads?
According the the FUSE docs (http://fuse.sourceforge.net/doxygen/structfuse__file__info.html) I should be able to set the file info stuct to have
keep_cache = 0
in the filesystem'sopen
call.I tried adding this to the included HelloFS example:
but the file content is still cached.
cat
ing the file gives:but then
cat
ing it a second time again gives:(Notice the lack of a call to HelloFS's
read
method.)This is on OS X 10.7 with
The text was updated successfully, but these errors were encountered: