Thank you Maxim and Deepak,
I researched the problem, and now it looks some another.
My driver gathers information about opened files and saves it in inner cache
on completion procedure of IRP_MJ_CREATE.
Later on each IRP_MJ_XXX calling driver checks is it known file. If it is
unknown file, driver just passes call to lower driver.
In current issue I discovered that only filter manager is lower driver
(except of FS driver of course). I guess that that one of anti-viruses
registered on this level.
At least I noticed that DispatchCreate calling passed through my driver, FS
executed this call, but before CompletionCreate came to my driver,
anti-virus called IRP_MJ_READ in separate thread with this file object and
new file context. So my driver got IRP_MJ_READ before CompletionCreate
returned back and of course it ignored this read calling, because it was
unknown file. But this call was non cached, and other IRP_MJ_READ were only
cached.
Well now is question. Is there way to set my driver lower then filter
manager?
Or is there another way to resolve the problem?
Thanks
Valery
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Deepak Gupta
Sent: Monday, May 10, 2010 8:24 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] Do not get non cached Read requests on Windows 7
OP said he has a legacy filter.
A little code snippet of read handler could provide some clue to list
members.
Regards
Deepak
On Mon, May 10, 2010 at 1:52 AM, Maxim S. Shatskih
wrote:
Have you used “skip paging IO” flag at minifilter registration?
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
“Valery Druba” wrote in message
news:xxxxx@ntfsd…
Hi all,
I work with legacy filter driver that supposed to encrypt files. Some time
ago I got strange behavior.
That occurs only on NTFS under Windows 7. When I try read files, IRP_MJ_READ
requests for some of them come only as cached requests (IRP_NOCACHE flag is
zero). And non cached requests don’t come. In such case driver do not
process such requests and data are kept encrypted.
At the same time when I turned on debug output in my driver, I got a lot of
messages and driver worked very slowly. But all requests were correct and
driver successfully decrypted all files.
Can anybody explain such behavior ?
Thanks
Valery
—
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) 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
— NTFSD is sponsored by OSR For our schedule of debugging and file system
seminars (including our new fs mini-filter seminar) 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