skipping metadata during reads and also appending during writes

Hello.

I’m writing filter driver which will skip metadata( at the end of file)
during reads and also append metadata during writes.

Actually, I’ve changed Filesize value of the FCB common header in the
IRP_MJ_CREATE completion routine. and in the IRP_MJ_CLEANUP hook routine
I set the value back to the original size.Of course I did handle the
mutiple handle problem.

when the user mode program just read the data. That works well (So far)
Even with the program using file mapping, Notepad, something like that

But while writing the data, some corruption occured. I mean filesize.

What am I supposed to do to get over this stumping situation.
How can I append meta data efficiently ans simply at the end of file when
all writes finished

Please help me
Thank you so much.


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com