Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

OSR Seminars


Go Back   OSR Online Lists > ntfsd
Welcome, Guest
You must login to post to this list
  Message 1 of 2  
26 Dec 17 17:56
Sivaller
xxxxxx@gmail.com
Join Date: 13 Jul 2017
Posts To This List: 33
Question on FSCTL_REQUEST_OPLOCK

What happens if I neglect the oplocks functions, that is, what happens if I do not call the oplock functions in IRP_MJ_CREATE and IRP_MJ_CLEANUP AND that I always return STATUS_SUCCESS in ioctl function FSCTL_REQUEST_OPLOCK ???? How will behave Windows 10? Why do that ? Because I can not stop / restart the machine because some opLocks functions used (difficult applicatio). I have some problems with oplocks.
  Message 2 of 2  
27 Dec 17 03:31
Gabriel Bercea
xxxxxx@gmail.com
Join Date: 03 Mar 2008
Posts To This List: 319
Question on FSCTL_REQUEST_OPLOCK

You do not call oplock functions. The oplock functions are being called and you just filter them and have you filter behave accordingly. You pretty much will have to go ahead and see the oplock semantics and implement your filtering accordingly. The short version is: save the oplock file object and use that in your I/O ( alternatively there could also be an oplock key specified through ECP to use your own FO). The long version is slightly more complicated and you will need to maintain internal states of the oplocked file and do I/O when possible without breaking the oplock yourself. You could very well get away with it by simply ignoring everything but I don't know what your filter does and what scenarios need I/O. Keep in mind that oplocks could be used even locally to access any file, not just network files. Windows Defender for example uses filter oplocks ( or used to anyway ) to scan files locally. If you want more help you will need to provide more on the problem you are facing now, like a particular deadlock scenario and such. Your question is too generic to receive a concrete answer. Gabriel www.kasardia.com
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntfsd list to be able to post.

All times are GMT -5. The time now is 23:30.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license