Hello,
I have written an encryption/decryption minifilter which is working fine for local files. I am handling IRP_MJ_WRITE for IRP_NOCACHE, IRP_PAGING_IO, IRP_SYNCHRONOUS_PAGING_IO. But this behaviour is not emulated in case of network files. I have read some posts regarding the same. There are some possible ways thats was suggested by the posts -
- Have a minifilter on the remote machine which writes on the targed file. But I want this to work from host machine rather than from remote machine.
- Handle IRP_MJ_WRITE on IRP_DEFER_IO_COMPLETION. But this is is not working in all the cases. Lets take the case for BMP files I am getting IRP_NOCACHE after IRP_MJ_FLUSH_BUFFERS.
- Read the FAQ “Caching in Network File Systems”. But I couldn’t understand how to write in a minifilter driver to disallow caching with LanmanRedirector.
I want to know -
-
Is there is any particular flag or a group of flags on which we have to handle IRP_MJ_WRITE for network files?
-
If there is no such flag available then how to handle this particular case of network files.
Thanks