Closed minidron closed 3 years ago
I seem to recall that getfinalpathname
requires the file system to be mounted using the mount manager. For sshfs this would mean (untested): sshfs user@host:/ '\\.\x:'
sshfs user@host:/ '\\.\x:'
SSHFS version 3.5.2 Cannot create WinFsp-FUSE file system: invalid mount point.
BTW, the single quotes ('
) are required only when launching from a bash prompt. If launching from a command or powershell prompt, they should be removed. Another caveat is that you need to launch the file system as Administrator in order to use mount manager mountpoints.
Having said that sshfs has not been tested with mount manager mountpoints (because it was developed before they were added to WinFsp) and may not work with them.
Tried with and without quote. Tried launching from a cmd, powershell and cygwin bash. The result is always:
Cannot create WinFsp-FUSE file system: invalid mount point.
Apparently, the last version of sshfs does not support it. Are you going to add this feature?
Thanks!
Apparently, the last version of sshfs does not support it. Are you going to add this feature?
I am really stretched thin at the moment. Would you consider sending a PR for this?
After doing some research (I've never worked with the c/c++ language before), I found two places that need to be updated so that sshfs can support mount manager mountpoints:
sshfs-win Need add conditional for support \\.\x:
pattern sshfs.c.
winfsp. Need add conditional for support \\.\x:
pattern dll/fuse/fuse.c.
After these changes, sshfs user@host:/ \\.\x:
working and Python _getfinalpathname('x:')
working without error. But need to launch the file system as Administrator.
Would you consider sending a PR for this?
I can try.
@minidron great research especially for someone who has not worked with C before!
winfsp. Need add conditional for support \.\x: pattern dll/fuse/fuse.c.
Thanks for the pointer. I will look into this myself.
sshfs-win Need add conditional for support \.\x: pattern sshfs.c.
We can look into patching this in the upstream SSHFS, or we can add a simple patch in the patches directory that does the job. Let me know which is your preferred method.
Thank you! These updates solved the problem.
I am still having similar problem. I am using sshfs-win3.5.20357 and winFSP 2021 Beta2 along with SSHFS-Win Manager 1.2.1
I still have the exact same issue
Please make sure to mount the drives using the \\.\X:
syntax notation. You will need to do this from an account that has Administrator privileges.
Please make sure to mount the drives using the
\\.\X:
syntax notation. You will need to do this from an account that has Administrator privileges.
From a end-user perspective, this is not helpful. I have the issue and have no idea what you talk about.
I've mounted my sshfs at N:\, I don't know much more thant that.
If I mount through command line:
sshfs user@host:/ x:
In Python:
I get error:
If I mount through
net use
command, Python works without error.