-
Notifications
You must be signed in to change notification settings - Fork 64
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
Faulty timestamps #414
Comments
@Anuskuss Thanks for your report:) This result is from SMB2 connection ? or SMB1 ? |
SMB3 actually. |
Okay, Let me check it. Could you please explain what is meaning "Server", "Client" and "Windows" ?
|
Server: A Debian machine hosting |
@Anuskuss Okay, You provided timestamp difference to me for Client, Server and Windows. For Client and Windows, You compared the difference in timestamp of files against each server through the mount directory. But what is the timestamp for the servers? Does it just mean the timestamp of the local file in the share of server? |
Yep. I'm |
Hm.. I can not reproduce this issue. Windows also shows the same creation time as Linux. Can you give your ksmbd information ?
|
Seems like ksmbd (and Samba) ignores the birth time (
Run this: file=/path_to_share/testfile && touch $file && sleep 2 && echo 1 > $file && sleep 2 && chmod u+x $file && sleep 2 && cat $file > /dev/null && stat $file In this case, the oldest timestamp is going to be |
Hm... I can not reproduce this issue, Sorry. Can you try to reproduce it using ext4 ? I don't know that ZFS support xattr(extended attribute). because ksmbd store creation time to xattr space. |
I was wondering you turn "store dos attributes" off in ksmbd.conf. man ksmbd.conf
|
Yeah it's off. If I turn it on it obviously works but I'm trying to get away from extended attributes (most of my SMB traffic is actually happening between Linux machines nowadays and the Windows machines/smartphones that do use it don't care too much about accurate attributes).
I can try that but it might take a few days. |
Sorry for the wait. P.S. I was reusing my Samba
|
It's not the end of the world but I do like to have accurate timestamps. Not even Samba got it right either. I'll try to illustrate what I mean (let's assume every step happens one hour apart):
1. Create file in server
Server
unix
Client
unix
Windows
unix
2. Modify file in client
Server
unix
Client
unix
Windows
unix
3. Modify file in client again
Server
unix
Client
unix
Windows
unix
TLDR: Don't change the
created
timestamp (inside the extended file attributes).The text was updated successfully, but these errors were encountered: