sehang / dokan

Automatically exported from code.google.com/p/dokan
0 stars 0 forks source link

Dokan does not work with Visual C++ Express (Paging IO problems) #120

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Dokan does not honor the IRP flag IRP_PAGING_IO and the file object flag
FO_SYNCHRONOUS_IO. 
When doing paging IO or asynchronous IO, the file pointer should not be moved. 

See: http://www.osronline.com/article.cfm?article=17#Q29

I have attached two patches for sys and dokan below 

Original issue reported on code.google.com by t.s.mae...@gmail.com on 1 Dec 2009 at 12:48

Attachments:

GoogleCodeExporter commented 8 years ago
Than you for your patch. I changed the driver to handle current byte offset 
correctly.
BTW, do we need to notify paging IO to user mode?

Original comment by asa...@gmail.com on 25 Dec 2009 at 8:45

GoogleCodeExporter commented 8 years ago
Yes, I believe so. I've read somewhere that paging IO might cause writes beyond 
the
end of file position. These writes should be ignored. 

Original comment by t.s.mae...@gmail.com on 25 Dec 2009 at 11:55

GoogleCodeExporter commented 8 years ago
I changed to notify paging io. I couldn't fix this issue for a log time, thank 
you so 
much.

Original comment by asa...@gmail.com on 25 Dec 2009 at 1:58