Hi all,
I am implementing minifilter driver for data modification purposes. While saving the file , in the postwrite operation , it displays amount of data written is 0 and Iostatus is 0xC0000002, while in Prewrite operation it displays proper write length and byteoffset.
This occurs sometimes after, i was continously making changes in file (deleting contents and writing again) and saving in between which results in corruption of file.
Plz help me out to resolve this issue.
Mahesh
Are you trying to post a fast I/O call? You can’t do that.
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
Hi Tony,
I am not posting Fast I/O call in pre-postwrite operations. This write is a paging write.
Several of such writes do succeed but finally one of them fails with the said error message. For your information I am modifying the file size (not in this paging write but in cached writes / cached set info).
I have also used the helpful filespy utility which shows the same error. But there is nothing else that seems to be strange about this write.
Mahesh
Hi,
In the Paging write , after modifying WriteLength to multiple of sector size, issue seems to be resolved.
Can the Writelength in paging write be not in multiples of sector size viz. 15,18 etc.
Mahesh