-
Notifications
You must be signed in to change notification settings - Fork 255
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
macOS: input/output error on folder copy/delete #140
Comments
Do you have something logged in syslog? (the syslog viewer is called "console" in macos) |
Oh and can you try copying the folder in the terminal? Maybe we get more info on what goes wrong. |
Terminal
So nothing new :( I've also started to see some other errors as well:
Errors 2) and 3) seem to have disappeared after I've unmounted and mounted the drive, even though the original folder is still cursed Console There is also output of errors from the Devices console log during the the terminal Haven't found anything else, but Console if a big dump :), so if you know where else to look, let me know |
Ok, I looked through the logs, this was the only interesting entry I found. Note that "err=5" = input/output error, so looks closely related. But I was hoping to find log entries from gocryptfs itself.
But, no problem. We can turn up the log level. Can you mount on the command line using:
This should get you a detailed log of all operations. Then retry the "cp -r win win2" in another terminal window and post what happens in the log? Thanks! |
Here you go, two logs, one for a terminal copy command, the other for a PathFinder copy&paste P.S. P.P.S |
Yes, you caught it!
There is a |
Ah, I see. Those persistent hidden macOS turds :( |
MacOS creates lots of these files, and if the directory is otherwise empty, we would throw an IO error to the unsuspecting user. With this patch, we log a warning, but otherwise pretend we did not see it. Mitigates #140
MacOS sprinkles .DS_Store files everywhere. This is hard to avoid for users, so handle it transparently in Rmdir(). Mitigates #140
Yes I agree, it's pretty hard to avoid those files. I have just pushed two changes that should fix both reading and deleting the directory - could you test if it works for you? |
Yep, seems to be working, now I can delete folders even if the corresponding encrypted folders have |
I'm trying to delete a folder
win
and get an input/ouput error (see screenshots below from Path Finder and Finder)I can't copy it either, though I can rename it
On a Windows machine I can copy the folder just fine (and I can delete the copy on macOS; haven't tried to delete the original folder on Windows not to lose the valuable example of an error)
Selected system info
The text was updated successfully, but these errors were encountered: