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 6  
08 Jul 18 07:34
Gova Gimer
xxxxxx@sivaller.no-ip.org
Join Date: 26 Mar 2018
Posts To This List: 16
FsRtlCheckOplock

Hello, I'am on filesystem disk driver, i use runtime oplock : Example : status = FsRtlCheckOplock(VDFSGetFcbOplock(Fcb), Irp, vds, VDSOplockCompleteForCleanUp, VDSPrePostIrpForOplock); How i do for test oplock function ? How i do for simulate simulation for these functions (VDSOplockCompleteForCleanUp or VDSPrePostIrpForOplock ) to be called ?? I implement the oplock and I am unable to say if it complies. Thank.
  Message 2 of 6  
08 Jul 18 08:20
rod widdowson
xxxxxx@steadingsoftware.com
Join Date: 11 Sep 2006
Posts To This List: 865
FsRtlCheckOplock

There are some very very good oplock tests in WLK. But for individual testing the (amazing) Filetest utility had the ability to test oplocks added to it recently (in the last 5 years anyway) Rod
  Message 3 of 6  
08 Jul 18 14:39
Gova Gimer
xxxxxx@sivaller.no-ip.org
Join Date: 26 Mar 2018
Posts To This List: 16
FsRtlCheckOplock

In FileTest I view "Oplock grayed". Inusable because button are grayed.
  Message 4 of 6  
08 Jul 18 14:40
Gova Gimer
xxxxxx@sivaller.no-ip.org
Join Date: 26 Mar 2018
Posts To This List: 16
FsRtlCheckOplock

I added , i tested since directly native drive windows then the button "Oplock file op?rations" are grayed.
  Message 5 of 6  
09 Jul 18 04:20
rod widdowson
xxxxxx@steadingsoftware.com
Join Date: 11 Sep 2006
Posts To This List: 865
FsRtlCheckOplock

I dont have the MSDN to hand but I know that it says somewhere that the handle has to be opened non syncrhonous. Try that
  Message 6 of 6  
10 Jul 18 05:44
Gabriel Bercea
xxxxxx@gmail.com
Join Date: 03 Mar 2008
Posts To This List: 320
FsRtlCheckOplock

First you need to go to the NtCreateFile tab and open the file. Make sure it is a NON synchronous open. After the successful open you go to file ops and from there do you oplock test. You can open several FileTest instances to test with different oplock scenarios etc.. Cheers, Gabriel On Sun, Jul 8, 2018 at 8:40 PM xxxxx@sivaller.no-ip.org < xxxxx@lists.osr.com> wrote: > I added , i tested since directly native drive windows then the > button "Oplock file op??rations" are grayed. > > > --- > NTFSD is sponsored by OSR > > > MONTHLY seminars on crash dump analysis, WDF, Windows internals and > software drivers! <...excess quoted lines suppressed...> -- Bercea. G. --
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 19:28.


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