[Samba] Re: Samba vs. Windows : significant difference in timestamp handling ?

Dragan Krnic dkrnic at lycos.com
Fri Aug 15 15:35:25 GMT 2003

>>>|> after file is closed:
>>>|> Test.ppt mtime->12:49:16, ctime->12:49:16, atime->12:49:16
>>>|> ... still looks new to me !
>>>> Not my experience. Even after doing the fake 
>>>> number the mtime remains unmodified, atime gets 
>>>> changed, of course, and, what was not quite to 
>>>> expect, so does the ctime.
> My above experience was made as DOMAIN\Administrator.
> However, I tested it with several ordinary users and
> by all of them only the access time is affected. The
> ctime and mtime remain the same, as long as no change
> is committed to the disk.

The test PPT file I used as seen by Explorer after
viewing and closing it with faked identity:

File    Created           Modified          Accessed
ppt.ppt 12.08.2003 17:43  12.08.2003 17:43  15.08.2003 16:45

The same file seen with Linux command stat:

   # stat ppt.ppt 
     File: `ppt.ppt'
     Size: 8192 Blocks: 16 IO Block: 4096 regular file
   Device: 6801h/26625d Inode: 186323 Links: 1    
   Access: (0774/-rwxrwxr--) Uid:(0/root) Gid:(0/root)
   Access: 2003-08-15 16:45:38.000000000 +0100
   Modify: 2003-08-12 17:43:09.000000000 +0100
   Change: 2003-08-15 16:45:38.000000000 +0100

The ctime gets changed whenever atime changes!?
Windows shows mtime as both mtime and ctime.?!

Is it a bug or a feature? 

Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!

More information about the samba mailing list