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
Is MacFUSE support fcntl(fd, F_GLOBAL_NOCACHE, 1) #1010
Comments
You can specifying the mount option
How did you come to this conclusion? What did not behave as expected? |
I set this flag to the file descriptor when the open callback from macFUSE comes, after I use other APP opend this file once, then I tried to copy the file out of macFUSE mounted folder, found that macFUSE read callback did not come, so I suspect the cache still works. |
Just to avoid misunderstandings, did you set You would need to set |
Here is the code snippet, in my file system daemon:
I'm not sure the file descriptor I got here is from FUSE or the macOS. |
You are setting For file systems using the libfuse (high level or low level) API there is the option of setting the I think the cleanest option (when the macFUSE.framework) would be disabling caching for the whole volume by specifying the |
Yes, I setted |
Let's assume there is a file called |
I'm trying to find a way to disable the kernal Unified Buffer Cache for some special files. I found that
fcntl(fd, F_GLOBAL_NOCACHE, 1)
is designed to turn data caching off/on (globally) for a file descriptor. But after I setF_GLOBAL_NOCACHE
with flag1
, the file cache seems still there.So I wonder to know whether macFuse already supports
fcntl(fd, F_GLOBAL_NOCACHE, 1)
? Or is there anyway to disable the UBC?The text was updated successfully, but these errors were encountered: