Skip to content
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

Mount point as a folder works weirdly #29

Open
the-Arioch opened this issue Sep 23, 2021 · 3 comments
Open

Mount point as a folder works weirdly #29

the-Arioch opened this issue Sep 23, 2021 · 3 comments

Comments

@the-Arioch
Copy link

echo {password}| yasfw -r -c --server {IP} --user root --mount-point D:\temp\ssh_test -C /vz/private/{something}

In this case d:\temp did exist but d:\temp\ssh_test did not. This seems irrelevant though, as i tried a totally lunatic w:\xxx and nothing seemed ot change.

No warnings givens, however

  • SSHFS is not mounted to the given folder
  • SSHFS is instead mounted to F: (first not-used drive letter, except for unsued A: and B:)
  • drive insertion/deletion notifications fails to work (that means, the new drive is not appearing in Windows Explorer until i re-query by F5 key, same way it does not dis-appear when unmounting; similar behaviour in Total Commander or Unreal Commander)
  • when i ^C out of yafsw (removable drive option does not work #28 - removable options does not work) - here is finally some difference.

Normal mounting exit shows

Sep 23 14:58:07.498 INFO mounted
Sep 23 15:08:29.963 INFO unmounted
Sep 23 15:08:30.963 INFO exiting, dokan_result: Ok(())

"Folder mounting" however missed two last lines (unmounted and exiting" at all.


Windows NT provides for filesystems being mounted both as folders and as drive names. If possible it would be nice to have it in yafsw too. If not (or until not) it would be nice to both document that only disk letters are accepted, and to actually check --mount-point value soundness (it is drive letter, it is not mounted already, UNC drive path? non-ASCII drive letter?)

@DDoSolitary
Copy link
Owner

Does it work if you use an existing but empty folder? That's how NTFS folder mounting works normally.

@the-Arioch
Copy link
Author

Seems to be "upstream" misfeature - dokan-dev/dokany#317 - at least w.r.t. apps being notified on drive letters added/removed.
Description seems similar, somewhat wrong moung point, silently ignored and default drive letter asusmed, no notifications.

Does it work if you use an existing but empty folder?

Tried it with yasfw, also tried escapings: E:\111, E:\\111, E:/111, e:\111 - no change.

What bugs me is that yasfw shows different output, thus slightly different behaviour. So it is not sole issue of Dokany core, there is something about it inside yasfw too.

But mirror does work on folders. At least a x64 non-FUSE mirror (latter does not start lacking cygwin dll, and while i can take chances copy-pasting it out of git i'd prefer not risk messing with filesystems :-) )

@the-Arioch
Copy link
Author

offtopic...

Turns out, mere mount is not enough.... Git needs chmod/chown. Maye just pretend stub "it's ok" without actual function...
Which seems not implemented in either dokany or yasfw.

BTW, what is your personal choice of Rust dev environment. OS, IDE/editor, something more ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants