rajeshgangam / dokan

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

FlushFileBuffers() breaks WriteFile() calls (with test cases) #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile and run attached test case(s) on dokan mirror sample

test case pseudo-code:
handle = CreateFile("test")
FlushFileBuffers(handle)
WriteFile(handle, buffer)

What is the expected output? What do you see instead?
expected:
WriteFile() performs without error
actual result:
WriteFile() generates ERROR_INVALID_PARAMETER error

What version of the product are you using? On what operating system?
dokan-0.4.2.1238 x86; Windows XP

Please provide any additional information below.
- The test cases work fine on NTFS.
- testcase.cpp compiles with both MSVC and GCC/cygwin
- wincase.cpp compiles with MSVC

Original issue reported on code.google.com by olivier2...@gmail.com on 22 Jan 2010 at 6:58

Attachments:

GoogleCodeExporter commented 9 years ago
Looking at the svn tree I see a couple of changes in sys/flush.c were done 
since the
release of 0.4.2.1238. The issue might already be fixed...

Original comment by olivier2...@gmail.com on 22 Jan 2010 at 10:11

GoogleCodeExporter commented 9 years ago
Turns out it is indeed fixed. I compiled the driver from the latest sources and
confirmed the issue has been fixed since the release of 0.4.2.1238. Hiroki 
rocks;
sorry for all the noise.

Original comment by olivier2...@gmail.com on 23 Jan 2010 at 10:11

GoogleCodeExporter commented 9 years ago
No problem. Thank you for your report.

Original comment by asa...@gmail.com on 2 Feb 2010 at 10:58