[Samba] strange behavior with "dos filetime resolution = yes"

Hubert Gilch hg at sepag.de
Tue Jan 26 10:57:58 UTC 2016


Hello,

i see a strange behavior with timestamps of files on a samba share 
(4.2.6 on SLES 12 SP1 and 4.1.8 on Ubuntu 14.04) with "dos filetime 
resolution = yes": On older samba versions, windows properties dialogue 
correctly shows only even seconds, but (at least) the two indicated 
versions show sometimes even and sometimes odd seconds if the file has 
on the server filesystem a timestamp with second.

on SLES (file has odd seconds in timestamp):
  # l --full-time fsclean_kunde.sh
-rwxrwxr-x 1 relag relag 1930 2016-01-21 18:08:41.280635200 +0100 
fsclean_kunde.sh*

on Windows 7 (seconds should be 40!):
T:\projekte\relag4i\RelagSystem\cmd>ls -l --full-time 
T:\projekte\relag4i\RelagSystem\cmd\fsclean_kunde.sh
-rw-r--r--    1 hubert   Administ     1930 Thu Jan 21 17:08:41 2016 
T:\projekte\relag4i\RelagSystem\cmd\fsclean_kunde.sh

But when you view properties via Windows Explorer, it reports 
alternately 41 and 40 seconds.

In my understanding, "dos filetime resolution = yes" should have the 
effect that only even seconds are reported by samba (and in older 3.x 
version this is the case).

smb.conf (only the relevant share):
[RELAG]
         force group = relag
         force user = relag
         # inherit acls = Yes
         path = /relag
         create mask = 0775
         directory mask = 0775
         follow symlinks = yes
         wide links = yes
         read only = No
         dos filemode = Yes
         dos filetimes = Yes
         dos filetime resolution = Yes
         fake directory create times = yes
         map archive = no

-- 
Mit freundlichem Gruß
i. A. Hubert Gilch

Systemadministrator

SEP Logistik AG
Ziegelstr. 2
D-83629 Weyarn
Tel.:     +49 8020 905-214
Fax:     +49 8020 905-100
Email: hg at sepag.de <mailto:hg at sepag.de>
Web: www.sepag.de <http://www.sepag.de/>


Sitz der Gesellschaft: Weyarn Rechtsform: Aktiengesellschaft Amtsgericht 
München: HRB 119679
Vorstand: Professor Dr.-Ing. Franz Demmelmeier (Vorsitzender), 
Dipl.-Ing. Konrad Schneider, MBA, Dipl.-Ing. Markus Fischbacher
Aufsichtsratsvorsitzender Michael Pelzer



More information about the samba mailing list