File ctime/mtime update inconsistencies

Atte Peltomaki atte.peltomaki at f-secure.com
Tue Jul 8 10:16:51 GMT 2008


Hello hackers,

Scenario: Delete older-than-x files on a domain member server CIFS 
share.

Problem: neither ctime nor mtime attributes are consistently updated
when new files are created or existing ones replaced. 

How things currently appear to work:

Using a WinXP SP2 client: 

Copy a file to a Win2003 R2 share: ctime is updated, mtime is not.
Copy a file to a Samba 3.2.0 share: neither ctime or mtime are updated.

Using a Linux client, smbclient or smbfs/cifs mount:

Copy a file to a Win2003 R2 share: ctime and mtime both updated.
Copy a file to a Samba 3.2.0 share: ctime and mtime both updated.

Would there be a problem changing Samba behaviour to match that of
Win2003's?

-- 
 ____________
 \   ______//     Atte Peltomäki - atte.peltomaki at f-secure.com
  \  \\____        UNIX System Administrator - IT Server Team
   \   __//    F-Secure Corp. PL 24, FIN-00181 Helsinki, Finland
    \  \\     Tel: +358 9 2520 0700,     direct: +358 9 2520 5423
     \ //                   http://www.f-secure.com
      \/         Integrated Solutions for Enterprise Security


More information about the samba-technical mailing list