bibikurosawa / dokan

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

TRUNCATE_EXISTING creation disposition does not work #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call CreateFile with TRUNCATE_EXISTING creation disposition on a dokan 
mounted drive
2. Observe flags coming in from dokan CreateFile callback, creation 
disposition is 3 (OPEN_EXISTING)
3.

What is the expected output? What do you see instead?
Expected: creationDisposition = 5 (OPEN_EXISTING)
Actual: creationDisposition = 3 (OPEN_EXISTING)

What version of the product are you using? On what operating system?
Dokan: 0.3.7
OS: Windows XP Home SP3

Please provide any additional information below.

Original issue reported on code.google.com by dres.sch...@gmail.com on 21 Sep 2008 at 7:51

GoogleCodeExporter commented 9 years ago
This issue is fixed in the next release of Dokan library.
In the next version of Dokan library, when you passed TRUNCATE_EXISTING to 
CreateFile, you get SetEndOfFile callback with the second parameter set 0 after 
CreateFile callback.
Dokan can't pass the TRUNCATE_EXISTING parameter to CreateFile callback.

Original comment by asa...@gmail.com on 28 Sep 2008 at 9:26