-
Notifications
You must be signed in to change notification settings - Fork 115
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
Getting Windows Cache Manager to work with Dokan.NET #365
Comments
A pointer to So, more specifically, what is it that you want to do with the |
@LTRData I just wanted to see if it was possible to tap into Windows caching system as suggested here: dokan-dev/dokany#1214 E.g. be able to call |
Yes, that would need several changes in the driver to work together with user mode implementation. There was a discussion about it here dokan-dev/dokany#1047 where @Liryna mentioned some ideas about how it could be implemented. However, as mentioned there, keeping cache invalidation correct and robust is not really a trivial task. |
My particular scenario is remote-mounting immutable filesystems ( e.g. a disk image, btw, thanks for https://www.nuget.org/packages/LTRData.DiscUtils.Wim ). So no invalidation should be required except upon the unmount |
Windows Cache Manager support can only be implemented in Dokan driver (using The other solution is the userland filesystem implementation to build (read ahead) and own the cache so it can be faster at completing requests. @lostmsu In your scenario if the content is immutable, maybe loading the content in userland memory is acceptable ? |
Unfortunately no, the whole scenario is about streaming only what's really needed. |
It looks like in order to tap into the cache manager
PFILE_OBJECT
is required, butIDokanOperations
andIDokanFileInfo
don't have that exposed.The text was updated successfully, but these errors were encountered: