Bug 14157 - Modification times not preserved correctly
Summary: Modification times not preserved correctly
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-10 13:47 UTC by Ralph Böhme
Modified: 2019-10-11 09:53 UTC (History)
3 users (show)

See Also:


Attachments
win2k16 strace+pcap data (22.16 KB, application/gzip)
2019-10-10 13:53 UTC, Ralph Böhme
no flags Details
samba strace+pcap data (56.93 KB, application/gzip)
2019-10-10 13:53 UTC, Ralph Böhme
no flags Details
Notes (4.77 KB, application/gzip)
2019-10-10 13:54 UTC, Ralph Böhme
no flags Details
win2k19 strace and pcap data (19.09 KB, application/gzip)
2019-10-10 13:54 UTC, Ralph Böhme
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Böhme 2019-10-10 13:47:59 UTC
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.
Comment 1 Ralph Böhme 2019-10-10 13:53:16 UTC
Created attachment 15527 [details]
win2k16 strace+pcap data
Comment 2 Ralph Böhme 2019-10-10 13:53:44 UTC
Created attachment 15528 [details]
samba strace+pcap data
Comment 3 Ralph Böhme 2019-10-10 13:54:06 UTC
Created attachment 15529 [details]
Notes
Comment 4 Ralph Böhme 2019-10-10 13:54:29 UTC
Created attachment 15530 [details]
win2k19 strace and pcap data
Comment 5 Ralph Böhme 2019-10-11 09:53:15 UTC
The server behaves correct. As discussed here

https://lists.samba.org/archive/samba-technical/2019-January/132191.html

the client needs to change.