artiche / dokan

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

FILE_FLAG_DELETE_ON_CLOSE not working #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call CreateFile on a dokan mounted drive with CREATE_NEW and 
FILE_FLAG_DELETE_ON_CLOSE 
2. Observe flags and attributes passed to dokan driver CreateFile callback: 
set to 0
3. Call CloseHandle on handle returned by CreateFile in step 1. Expect file 
to get deleted (which it isn't)

What is the expected output? What do you see instead?
Expected: Flags and attributes set to (0x04000000) FILE_FLAG_DELETE_ON_CLOSE 
Actual: Flags and attributes are set to 0

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 8:00

GoogleCodeExporter commented 9 years ago
Hello,
This issue is fixed in the next release of Dokan library.
Thank you for your information.

Original comment by asa...@gmail.com on 28 Sep 2008 at 8:25

GoogleCodeExporter commented 9 years ago
I have just updated to 0.3.9 and it doesn't look like the flag is passed 
properly 
still:

CreateFile("file", GENERIC_READ | GENERIC_WRITE, 0, 0, CREATE_NEW, 
FILE_FLAG_DELETE_ON_CLOSE, 0);

The following are the values (decimal) of the arguments passed by dokan to the 
CreateFile callback:

dwDesiredAccess=1245599, dwShareMode=0, dwCreationDisposition=1, 
dwFlagsAndAttributes 
=0

Can anyone else confirm whether this is working as expected? Am I not using the 
flag 
correctly?

Original comment by dres.sch...@gmail.com on 7 Oct 2008 at 2:10

GoogleCodeExporter commented 9 years ago
Answering my own questions: I had a copy of a 0.3.7 version of the dokan.dll in 
my 
path by accident, which was causing the problem. After replacing it the flag is 
now 
working as expected.

Sorry for the confusion.

Original comment by dres.sch...@gmail.com on 7 Oct 2008 at 2:18