Hi!
For some reasons, i have to flush and purge the contents of a file in cache, from time to time, in my minifilter.
I found the minifilter equivalent of CCFlushCache: FltFlushBuffers. But i could not find an equivalent for CCPurgeCacheSection.
I wanted to know the way of purging the cache for a particular file from my minifilter.
Also, the CcPurgeCacheSection documentation says that “CcPurgeCacheSection will not purge mapped files”. What should i do in this case?
Thanks!
Ayush Gupta
The normal answer is to reboot the system. That will succeed and nothing
else is guaranteed to do so. Writing your own file system where you can
control what is cached and when it is destroyed will also work. This
question has been asked and answered many times.
–
David J. Craig
Engineer, Sr. Staff Software Systems
Broadcom Corporation
wrote in message news:xxxxx@ntfsd…
> Hi!
> For some reasons, i have to flush and purge the contents of a file in
> cache, from time to time, in my minifilter.
>
> I found the minifilter equivalent of CCFlushCache: FltFlushBuffers. But i
> could not find an equivalent for CCPurgeCacheSection.
>
> I wanted to know the way of purging the cache for a particular file from
> my minifilter.
> Also, the CcPurgeCacheSection documentation says that “CcPurgeCacheSection
> will not purge mapped files”. What should i do in this case?
>
> Thanks!
> Ayush Gupta
>
>
>
> Also, the CcPurgeCacheSection documentation says that "CcPurgeCacheSection
will not purge mapped files".
What should i do in this case?
Nothing. This is by design. Windows kernel can’t do reverse mapping from
physical address to all virtual addresses( this is one-to-many mapping ). I
explained this more thoroughly nearly a year ago.
–
Slava Imameyev, xxxxx@hotmail.com
wrote in message news:xxxxx@ntfsd…
> Hi!
> For some reasons, i have to flush and purge the contents of a file in
> cache, from time to time, in my minifilter.
>
> I found the minifilter equivalent of CCFlushCache: FltFlushBuffers. But i
> could not find an equivalent for CCPurgeCacheSection.
>
> I wanted to know the way of purging the cache for a particular file from
> my minifilter.
> Also, the CcPurgeCacheSection documentation says that “CcPurgeCacheSection
> will not purge mapped files”. What should i do in this case?
>
> Thanks!
> Ayush Gupta
>
>
>
“I explained this more thoroughly nearly a year ago.”…
Please send me the link to the thread…
Thanks!
-ayush
I found the following explanations( and it seems quite new
)
http://www.osronline.com/showThread.cfm?link=106886
–
Slava Imameyev, xxxxx@hotmail.com