-
Notifications
You must be signed in to change notification settings - Fork 670
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
Fix/fuse deletedirectory #166
Conversation
Hi @matepek , In the Dokan/Windows logic, the delete should only happen in the cleanup. This is never call in your case ? @toksaitov since you made the changes with delete directory, does is changes are needed ? |
@Liryna The directory code was added by analogy following these instructions: Nevertheless, If there is a file system for which the following fix works for @matepek, I am OK with the PR. |
Hi @Liryna and @toksaitov! I needed some debugging to understand your answer and the intended directory-delete workflow. I start from the beggining:
(Because I'm not sure about what is the requested value in file cases.) What do you thing about it? Regards, |
Hi @matepek , This could be the case indeed ! Do you have an |
Hi @Liryna , You are right. Anyhow, thank You for Your help. ^^ |
From what I see and if we want to keep the logic, we should do something like this:
Do you agree with it ? Otherwise: About fuse wrapper, what is the benefit to not implement opendir ? |
Hi @Liryna , We are using Fuse on Linux and OS X. I'm porting it to Windows. On the case of a files it couldn't be the same as I can see in fusemain.cpp: Would you like to do it or should I update the pull request? :) Regards, |
You can update your pull request :) |
57b6e01
to
35fae79
Compare
35fae79
to
a8c364a
Compare
Thank you @matepek for your contribution and your time ! |
partial OT: is this behavior subject to be changed too? |
@g3gg0 Hi g3gg0, This behavior that you describe is made by the windows kernel. The wrapper need to be debug to understand what is happening exactly. Workflow of the kernel calls on the file... Etc |
hi Liryna, yeah, faced that too and am surprised that they even do read calls on that file handle before renaming. |
It is not use that choose when to open/read/close files 😃 It is the kernel that ask us to do it. To know what is happening wrong in the wrapper. We need to see what is the difference in the calls order and result between the C mirror and with the dokanfuse. I think there is something that the dokanfuse handle wrong (for example return error where it should succeed or something like). |
i wish you good luck in tracking that down. thanks for looking into it :) |
I don't really have time for it right now 😄 so it gonna take times I created an issue related to it: #178 |
Fix: Deleting directory doesn't working when using Dokan FUSE library.