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

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

FsRtlCheckOplock

Gova_GimerGova_Gimer Member - All Emails Posts: 25
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.

Comments

  • rod_widdowsonrod_widdowson Member - All Emails Posts: 956
    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
  • Gova_GimerGova_Gimer Member - All Emails Posts: 25
    In FileTest I view "Oplock grayed". Inusable because button are grayed.
  • Gova_GimerGova_Gimer Member - All Emails Posts: 25
    I added , i tested since directly native drive windows then the
    button "Oplock file op?rations" are grayed.
  • rod_widdowsonrod_widdowson Member - All Emails Posts: 956
    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 Member - All Emails 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
    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!
    > Details at
    >
    > To unsubscribe, visit the List Server section of OSR Online at <
    > http://www.osronline.com/page.cfm?name=ListServer>;
    >


    --
    Bercea. G.

    Cheers,
    Gabriel

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!