the reproduce methods:
1.run mirror sample.
2.create a new txt file in dokan disk.
3.set the txt file read-only attribute.
4.copy a new txt file with same filename to dokan disk and try overwrite the old one.
5.rename the other files below the same dokan parent folder of the txt file, it will always return status_sharing_violation
from the debug mode, I saw the parent folder was opened by dokan.dll and does not close it no more. I can fix it by return ACCESS_DENIED on function MirrorCreateFile when try to overwrite a read-only file or close the opened handle in function DispatchCreate, but I'm not sure which way is better.



