How can you cause CopyFile(Ex) to stop when WriteFile fails?

I have a written an RDR2-based mini-redirector to serve as a driver for a
client’s custom filesystem. Because of the fundamental design of the
filesystem, I cannot pre-allocate space for the file when I receive an
FileEndOfFileInformation message at the start of a CopyFile operation. I
just eat the message and return STATUS_SUCCESS.

If I run out of disk space during a WriteFile operation, I return
STATUS_DISK_FULL. Either CopyFile or the RDR2 framework continues to call
WriteFile (wth smaller buffers, interestingly) even though I continue to
return STATUS_DISK_FULL. Is there any way I can cause CopyFile to fail and
bail out if a WriteFile fails?

Thanks for any help that anyone can provide …

Larry


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