Copying a file in driver land

What is the best way to copy a file in a driver?

Is it simply to open the source and create the target, then perform
successive reads from the source and writes to the target until end of file
is reached?

If this is the case, are there any special problems to watch out for
regarding the end of file settings and file size information?

thanks. - jb


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

> Is it simply to open the source and create the target, then perform

successive reads from the source and writes to the target until end of
file
is reached?

Memory map the source (to the system process address space) and then write
to the target.

Max


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