dokan-dev / dokan-sshfs

Dokan SSHFS
277 stars 60 forks source link

On modifying a file in windows, the time stamp is set to a future date #17

Open PraneethKapuganti opened 6 years ago

PraneethKapuganti commented 6 years ago

Environment

Windows version: Windows 7 Processor architecture: Intel x86 64 Dokany version: 1.0.5 Library type (Dokany/FUSE): Dokan Check List

Description

I am using DOKAN SSHFS to mount to a remote linux server.

When I modify a file in windows the linux file timestamp is set to a future date. Because of this all the builds/make system is failing. Specifically the date is set to Jan 18 2038 on Linux and on windows it does not show any timestamp after the file is modified. I am using notepad to modify the file. In fact I used other softwares to modify the file and still see the same issue

Based on the timestamp it is being set on Linux, this looks like a integer overflow problem to me. I am not sure but I have seen similar issues before.

I am not sure if this is a bug with the library or dokan-sshfs. I opened a Issue for both

Liryna commented 6 years ago

Hi @PraneethKapuganti ,

Dokan sshfs is more a testing software / presentation that should not be really used day to day or it needs a good review :) Dokan handle the date correctly on files for sure so I would say dokan sshfs is broken on this part. Have you looked at https://github.com/Foreveryone-cz/win-sshfs ? It is a better supported sshfs !

PraneethKapuganti commented 6 years ago

Hi @Liryna I did look at win-sshfs. It is slow compared to Dokan sshfs. Especially it takes a lot of time in refreshing the dirs and files.

Liryna commented 6 years ago

Humm so regardin to your issue. Can you take a look at the value returned by https://github.com/dokan-dev/dokan-sshfs/blob/master/DokanSSHFS/DokanOperations.cs#L655 ? If SftpATTRS attr as at least the correct values.

And if no error and correct values also during the set time https://github.com/dokan-dev/dokan-sshfs/blob/master/DokanSSHFS/DokanOperations.cs#L799