Split out from bug #13594. Andreas Schneider: >Is that related to >https://lists.samba.org/archive/samba-technical/2019-January/132132.html >??? Jacob Shivers: 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 ** https://bugzilla.kernel.org/show_bug.cgi?id=198967 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] Notes
Created attachment 15530 [details] win2k19 strace and pcap data
The server behaves correct. As discussed here https://lists.samba.org/archive/samba-technical/2019-January/132191.html the client needs to change.