winfsp / sshfs-win

SSHFS For Windows
https://winfsp.dev
Other
5.11k stars 257 forks source link

Random deletion of new files; how to test with mount options? #26

Open OskarAtGitHub opened 6 years ago

OskarAtGitHub commented 6 years ago

I'm having seemingly random auto-deletion of newly created files on a mapped drive. Copying files with windows explorer always works. Also creating new files. But when saving new files to the mapped drive from a variety of programs, they seem to auto-delete at random. When a autodelete happens, it happens in under 10s for up to 10MB files (that I've seen so far).

The linux server inotifywait usually shows two delete commands for the file in question. This makes me think it might have something to do with windows caching, or file renaming or something.

I want to try to mount with the sshfs_sync option to see if that has any effect. But I can't find instructions on how to pass mount options via the windows explorer "map network drive" box. Is there a way to do this, or some other possibilities?

billziss-gh commented 6 years ago

@OskarAtGitHub unfortunately there is no way to pass command line parameters to sshfs using the "map network drive" functionality. You will have to start the sshfs program yourself from a command prompt.

OskarAtGitHub commented 6 years ago

@billziss-gh I'm having some trouble figuring out what I'm doing wrong. sshfs oskar@xxx.xxx.xxx.xxx t: With or without options, I only get a "read: Connection reset by peer". The debug option only adds the sshfs version printout.

billziss-gh commented 6 years ago

I think the syntax is sshfs user@server:/path t:. Notice the colon : before /.

OskarAtGitHub commented 6 years ago

@billziss-gh I get the same error message with :/ :\ : and everything else I could think if testing. If I leave out the : part, it takes a few second longer to get the error message though. Strange, the "map network drive" syntax was no problem.