GithubHelp home page GithubHelp logo

Unable to disconnect about sshfs-win HOT 4 OPEN

winfsp avatar winfsp commented on June 10, 2024
Unable to disconnect

from sshfs-win.

Comments (4)

billziss-gh avatar billziss-gh commented on June 10, 2024 1

For example in you example drive Y : "billz@macbook-pro (\sshfs) (Y:)"
When I rename it only 11 characteristics are allowed. This is strange since the original name is longer than 11.

Interesting indeed, especially because SSHFS and WinFsp are not really involved in this process (when SSHFS is mounted as a network drive); it happens all in the Windows shell.

I think the reason may be because the Windows shell is confused about what kind of file system is mounted: SSHFS reports that the file system name is FUSE-SSHFS. Explorer knows about NTFS, FAT and a few other file systems. When it sees a file system it does not know, it assumes that it has the same limits as FAT. FAT has a limit of 11 characters per volume label, which probably confuses Explorer.

These names are kept in the Windows registry. I was able to create a longer than 11 characters name by editing the registry:

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\##sshfs#billziss@macbook-pro]
"_LabelFromDesktopINI"=""
"_LabelFromReg"="1234567890123456"

This is not ideal, but it appears to overcome Explorer's confusion about the file system's identity.

from sshfs-win.

billziss-gh avatar billziss-gh commented on June 10, 2024

@DutchKillerbee are you saying that disconnect does not work even though you do not have Dokany installed? I have never seen this but there maybe another "network provider" other than Dokany that interferes with WinFsp. The advice of putting WinFsp first in the provider order is still valid. Try it and see if it works.

Can you elaborate what you mean by "rename the connection" in Explorer? Please post steps to reproduce.

from sshfs-win.

DutchKillerbee avatar DutchKillerbee commented on June 10, 2024

@billziss-gh
Sorry I was not clear but my disconnect problem is solved.
I was using dokany. I simply changed the Network provider "priority"

Regarding the rename issue:
When you right click in explore on your just created network connection there is an menu option to rename it.
For example in you example drive Y : "billz@macbook-pro (\sshfs) (Y:)"
When I rename it only 11 characteristics are allowed. This is strange since the original name is longer than 11.

from sshfs-win.

DutchKillerbee avatar DutchKillerbee commented on June 10, 2024

@billziss-gh
Thanks for your feedback.

from sshfs-win.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.