-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
rclone cannot read an encfs mounted drive on Windows 7 #261
Comments
Hmm looks like it might be related to @klauspost windows file name unification? Klaus? |
@garypaduana - This is likely a Dokan bug. It is old and unmaintained, just as encfs4win, if you are using this version. Have you tried some of the more recent EncFS software like this: http://encfsmp.sourceforge.net ? |
@klauspost Thank you for this suggestion but unfortunately it also does not work. It is possibly a step in the right direction, though, since drives mounted with EncfsMP are considered to be local drives and not removable storage. Also, EncfsMP does not support the My current workaround is to share the folders over smb then run encfs and rclone from a linux VM. |
Does it work, if you clone from a subdirectory?
|
It must be programmatically accessible using a UNC path. All paths are converted to UNC paths, otherwise we get into trouble with paths longer than 255 bytes. I will look at the EncfsMP root problem tomorrow. |
This will add an option to disable UNC conversion on Windows to deal with buggy file system implementations like EncFS. Fixes rclone#261
Really the file system drivers should be fixed. However, since that probably isn't something you can do, I have added an option to disable UNC path conversion. See PR #271. |
This will add an option to disable UNC conversion on Windows to deal with buggy file system implementations like EncFS. Fixes rclone#261
Thank you very much for the fix! I look forward to using it. |
@garypaduana - I have attached a build with the nounc option for you to test. I only have EncFSMP, Documentation is here: https://github.com/klauspost/rclone/blob/add-nounc-option/docs/content/local.md#long-paths-on-windows |
@klauspost I tried to use the fix this morning but unfortunately it doesn't seem to have worked. As you can see it is no longer using the UNC path but still cannot find the path specified in the encfs drive. I'm able to access the mounted drive with every other software I frequently use (SyncBackPro, Amazon Cloud Drive Official Client, VLC, Filezilla FTP Server, SMB shares, various image viewers, 7zip, Search Everything, and so on). Is there anything else you'd like me to try? Thank you for your continued effort but if you want to put this on hold I understand. Does the additional colon at the end of the path have anything to do with this? e.g.
Trying again with a subdirectory:
|
The colon is added by the error printer, so it is not part of the requested path. It seems like this check in Go file_windows.go is failing. That is the error returned. My guess is that Dokan/EncFS is returning the wrong information. I will create a test binary for you. |
|
ok, it is somewhere in the directory reading code, most likely Dokan returning a wrong value somewhere. The only way I can see this triggering is if opening the directory as a file does NOT return an error. Go first tries to open a file as a plain file, if that fails, it tries as a directory before failing. It seems like Dokan/encfs reports "success" when opening There isn't much we can do from here. You can try filing a bug for Go, but I doubt they will include a workaround for (what I expect to be) a buggy filesystem driver. It may be fixed in DokanY, but I don't know if encfs4win has been compiled for DokanY. Another workaround that could work, could be to share the drive, and access it as |
@klauspost I appreciate all the work you put into investigating this. I understand I'm using old software that hasn't been updated for years but only Dokan 0.6.0 is supported by encfs4win. As I mentioned earlier my workaround is to share the drive and run encfs and rclone inside an ubuntu VM. This works great and is really just a minor inconvenience. Thank you |
@klauspost thank you for the test sample ❤️ I have fixed the issue faced on dokan. dokan-dev/dokany#406 👍 |
First mount the virtual drive using encfs
Try to perform any operation with that drive using rclone and it will return with a read error.
dir
from theN:\
directory works without a problem.I'm using Windows 7 Professional x64, encfs4win, and Dokan 0.6.0
encfs.zip
DokanInstall_0.6.0.zip
The text was updated successfully, but these errors were encountered: