irp_mj_read problem

hi,
im writing a file system filter driver that hooks onto the LanMan
redirector.when i get a irp_mj_write i need to first send down a
irp_mj_read reusing the same irp and the fileobject, but changing the
length parameter, and a new buffer,after that i forward the original
request down again. problem is that every time i complete the original irp
teh io manager sends a irp_mj_set_information that truncates the file to
the size of the read that i sent down.
does anyone know why this happens and how i can solve it.

thanks and regards
shobhit

Hi ,

Create your own Irp using
IoBuildAsynchronousFsdRequest for the IRP_MJ_READ
request to the lower driver .

neeraj

— shobhit wrote:
> hi,
> im writing a file system filter driver that hooks
> onto the LanMan
> redirector.when i get a irp_mj_write i need to
> first send down a
> irp_mj_read reusing the same irp and the fileobject,
> but changing the
> length parameter, and a new buffer,after that i
> forward the original
> request down again. problem is that every time i
> complete the original irp
> teh io manager sends a irp_mj_set_information that
> truncates the file to
> the size of the read that i sent down.
> does anyone know why this happens and how i can
> solve it.
>
>
> thanks and regards
> shobhit
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
%%email.unsub%%

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/