Hi.
First of all, thank you for this great tool!
Several years ago I modified your FileTest tool to use oplocks for own test.
Oplocks were granted.
So maybe something is wrong with CreateFile flags, overlapped for example.
Oplocks can be also used from UM programmatically. There is an example in
MSDN where oplocks help to release file if someone wants to use it (but I
can’t find the link now).
Best regards,
Alexey Barabash
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@volny.cz
Sent: Wednesday, September 10, 2014 3:15 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] To add or not to add oplock support into FileTest?
Hi,
I was thinking of adding few buttons into FileTest - in particular, to
support oplocks (level_1, level_2, batch). However, when I tried to request
oplocks programatically, it always failed. I can see oplocks being granted
to SRV.SYS when a file is opened remotely, but when an application requests
an oplock, it does not work.
Is it by design that oplocks are something to be exclusively used by network
redirector(s) or am I doing something wrong?
NTFSD is sponsored by OSR
OSR is hiring!! Info at http://www.osr.com/careers
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer