Split out from bug #13594.
>Is that related to
I do not think that Samba differs from recent releases when copying files while preserving attributes, i.e. `# cp -p`.
It seems more so that Samba is matching the behavior of Windows where atime is accepted, but mtime is not respected.
I am able to reproduce this behavior with win2k16.
I have updated a kernel BZ:
** Bug 198967 - Modification times not preserved correctly **
With data and findings.
I am uploading the same data here as well.
If this should be addressed in a separate BZ, please tell me.
I've attached strace and pcap data from a 5.2 SMB client copying to a win2k19 SMB server showing that mtime/atime is correctly stored on the SMB server.
Created attachment 15527 [details]
win2k16 strace+pcap data
Created attachment 15528 [details]
samba strace+pcap data
Created attachment 15529 [details]
Created attachment 15530 [details]
win2k19 strace and pcap data
The server behaves correct. As discussed here
the client needs to change.