trigger oplock break from within an FSFD

Is it possible for a filter driver to trigger an oplock break on a file?
More specifically, is there any API (possibly undocumented) to do this
(rather than a hack like simulating another open)?

Thanks
–suresh

Of course. For Level 1, 2 or batch, just take out a byte range lock on
the file - lock a nonexistent range, it doesn’t matter. That causes the
oplock to break. For filter, open the file again, that will break the
oplock.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Suresh
Gopalakrishnan
Sent: Wednesday, June 01, 2005 6:46 PM
To: ntfsd redirect
Subject: [ntfsd] trigger oplock break from within an FSFD

Is it possible for a filter driver to trigger an oplock break on a file?

More specifically, is there any API (possibly undocumented) to do this
(rather than a hack like simulating another open)?

Thanks
–suresh


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com