-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Library - Allow FindFilesWithPattern to return STATUS_NOT_IMPLEMENTED #1096
Conversation
Thank you @KoltesDigital for the pull request! I agree it is way easier to change the library than adapting all the wrappers. This should have been done at first but we needed a 💪 contributor like you to make it happen! |
Haha don't overstate it 😄 |
While you're here: is there a reason why |
Thanks for the quick change! 🏆 Regarding Stream listing is produced by IRP_MJ_QUERY_INFORMATION which does not have this logic. When the buffer is full, we just return buffer overflow so that the kernel reallocate a larger one until it fit the data. That's why So now answering your question why 0 is a success for |
Thanks for the explanations, the merge, and the project overall! |
I just noticed that it's written at the bottom of https://github.com/dokan-dev/dokany/wiki/Update-Dokan-1.1.0-application-to-Dokany-2.0.0 . I'm not allowed to change it, so please consider editing it! |
@KoltesDigital https://github.com/dokan-dev/dokany/wiki/Update-Dokan-1.1.0-application-to-Dokany-2.0.0 is now updated 👍 Thanks! |
Thanks! Last annoyance 😄 I think you've made a typo, you wrote 2.5.0 but it should be 2.0.5. BTW are you maintainer on the Rust repo by any chance? |
Indeed 😄 I updated the version! Thanks |
Reverts #9eb4d15bc4c533b73dd718b3114c0be758f874d9
Checklist
Changes proposed in this pull request:
I'm upgrading the Rust bindings to use ^2. The high-level API always defines
FindFilesWithPattern
, with a default implementation returningSTATUS_NOT_IMPLEMENTED
. But the MemFS example was not working well. I discovered that a few months ago, this function was not allowed to returnSTATUS_NOT_IMPLEMENTED
anymore. I find that's too bad.After I tried for a long time to allow Rust to choose whether
FindFiles
andFindFilesWithPattern
are defined, I finally moved to changing the C library's behavior. It gives back the ability to all functions to returnSTATUS_NOT_IMPLEMENTED
. I believe this will be beneficial for other bindings as well.