Open lostmsu opened 3 months ago
This might be due to DokanCreateFileSystem
returning before DispatchDedicatedIoCallback
worker threads (which fully enable the device when they first reach the kernel and register themselves).
We would need to add a logic that they signal they get there.
https://github.com/dokan-dev/dokany/blob/69e3d88c693da08fc1e9c540c162877880eac155/dokan/dokan.c#L824-L826
Moving to dokany repository since it is a native improvement.
Trying to access the new file system immediately after it is built fails with
ERROR_INVALID_FUNCTION
orERROR_INVALID_PARAMETER
(depending on type of access).IMHO,
Build
by default should wait for the file system to be ready.Workaround
See also https://github.com/dokan-dev/dokan-dotnet/discussions/356