How to trap read operation during the file copy?

I am developing a minifilter driver and have met a problem.

When I am copying 512 files(the size of each file is 1 byte), I have found that the read operatiion of the original file will not cause the IRP_MJ_READ sent to the driver.

I wonder how I can trap the read operatiion of the original file in my driver.

Thanks.

> When I am copying 512 files(the size of each file is 1 byte), I

have found that the read operatiion of the original file will not
cause the IRP_MJ_READ sent to the driver.

If the copying application does mapping of the file
and then WriteFile on the mapped pages, you will not receive
the read request if the file is already in the cache.

This will most probably happen also when you
run Notepad on a text file twice in a row.

L.

Hi Zezula,

I like your “filespy” tool.

I am developing a minifilter driver. If a file is already in the cache.
it is impossible that minifilter get a IRP_MJ_READ of that file, isn’t it?

Is The behavior of “mapping of the file” or “on the mapped pages” called
Fast I/O Operation ?

On Thu, 4 Jan 2007 15:20:45 +0100
Ladislav Zezula wrote:

> > When I am copying 512 files(the size of each file is 1 byte), I
> > have found that the read operatiion of the original file will not
> > cause the IRP_MJ_READ sent to the driver.
>
> If the copying application does mapping of the file
> and then WriteFile on the mapped pages, you will not receive
> the read request if the file is already in the cache.
>
> This will most probably happen also when you
> run Notepad on a text file twice in a row.
>
> L.
>
>
>
>
> —
> Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@psh.com.cn
> To unsubscribe send a blank email to xxxxx@lists.osr.com

-------------------------------------------------------------------
$B#1J,4V(B36$B%Z!<%8$NN>LL%9%-%c%J!<(B($B:GBg(BA3$B$^$G(B) ------------- ScanSnap$B!(B
$B#7%v9q8lL>;I4IM}%=%U%H!(BAcrobat 7.0$BF1:-$N%9%-%c%J!<(B ---- ScanSnap$B!
(B
$B3Z!9J8=q4IM}%=%U%HF1:-$N%9%-%c%J!<(B --------------------- ScanSnap$B!(B

http://www.pfu.com.cn/jp/jwhatnew_scansnap.htm
http://www.pfu.com.cn/whatnew_scansnap.htm

-----------------------------------------------------
$BGO!!0NL@(B($B%P!!%$%a%$(B)
$B!!#P#F#U>e3$7W;;5!M-8B8x;J!!!(B $BBh;0E}3gIt7PM}(B
$B>e3$I,M%?.B)7OE}M-8B8x;J(B $BI{Am7PM}(B
$B>e3$;T7KJ?O)#5#5#59f#4#6Eo#5O0(B $BM9JXHV9f!‘(B200233
$B!!(BTel $B!’(B6495-0777 * 121 $B!!!(B COINS : 7987-6121
$B!!(BFax $B!‘(B6495-3773 COINS : 7987-6109
$B7HBS(B $B!’(B133-8621-0369
EMail$B!‘(xxxxx@psh.com.cn
MSN $B!’(xxxxx@cableplus.com.cn
----------------------------------------------------- *
$B>e3$I,M%?.B)7OE}M-8B8x;J$O#P#F#U>e3$7W;;5!M-8B8x;J#1#0#0!s=P;q$7$?;R2q