Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting... Please check out the Community Guidelines in the
Announcements and Administration Category, below.


Gova_GimerGova_Gimer Posts: 24
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.



  • rod_widdowson-3rod_widdowson-3 Posts: 935
    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)

  • Gova_GimerGova_Gimer Posts: 24
    In FileTest I view "Oplock grayed". Inusable because button are grayed.
  • Gova_GimerGova_Gimer Posts: 24
    I added , i tested since directly native drive windows then the
    button "Oplock file op?rations" are grayed.
  • rod_widdowson-3rod_widdowson-3 Posts: 935
    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
  • Gabriel_BerceaGabriel_Bercea Posts: 464
    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
    You can open several FileTest instances to test with different oplock
    scenarios etc..


    On Sun, Jul 8, 2018 at 8:40 PM <> 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!
    > Details at
    > To unsubscribe, visit the List Server section of OSR Online at <

    Bercea. G.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!