[Samba] Re: Problems with file date/time creation and modification

Dragan Krnic dkrnic at lycos.com
Sat Dec 13 19:47:19 GMT 2003

The dos filetime resolution should have made your server 
always return 2s-rounded times. The dos filetimes should
have made it use the same 2s-rounded times even when the
client asks the time with 1s resolution. Now the problem
with 2s resolution only applies to FAT16 volumes. NTFS
uses 1s resolution. So if you set both of those options
to Yes even though your Win volume is NTFS, you'r looking
for trouble. When you copy a file with creation time of
18:30:01 the Samba's OS will correctly copy it as 18:30:01
but since you said it should round the time to 2s resolution
even when explicitely asked for 1s resolution, then it will
say 18:30:00.
What happens when you set both of those options to No?
--------- Original Message ---------
DATE: Sat, 13 Dec 2003 09:05:21
From: Raphael TAVERNIER <rtavernier at ifrance.com>
To: dkrnic at lycos.com
Cc: samba at lists.samba.org

So no solution?... It is not possible to syncronize "real" M$ files with samba share files....

At 12:52 12/12/2003, you wrote:

> I have Time precision problem between linux samba shares 
> and M$ files I want to use my tux to save files from my 
> M$ PC's. Of course I want to do incrementals copy based 
> on modification date...
> I mount my samba shares from my Windows Boxs and use 
> tools on the micro$oft boxs. (Xcopy /D or SyncroniX )
> The problem is that the modification date on the samba 
> share and on de source file on the M$ local disk is 
> sometimes different by 1s (newer or older).
> For example I create a file c:\mytest.txt the file 
> properties says Created modified at 18:30:01
> I xcopy it to my samba share window$ properties says 
> Created modified at 18:30:00 which is older! so when 
> I xcopy /D the file is copied again and again.
> I'm Running samba-2.2.7a-8.9.0 on Redhat 9.0
> My M$ boxs are both W2K and XP (on NTFS).
> I've searched a little around and set :
> dos filetime resolution = yes 'for the dos 2s 
> resolution time... and : dos filetimes = yes  
> '...for Visual C++...
> But it didn't change anything.
> Is it possible to syncronize these filetimes...?

Probably not. I believe DOS/Windows packs the time in such 
a way that they have no notion of odd seconds times. All 
seconds are even. But that is normally no problem.
Envie de discuter en "live" avec vos amis ? Télécharger MSN Messenger
http://www.ifrance.com/_reloc/m la 1ère messagerie instantanée de France 
Portable: 06 09 21 36 96
Home:   04 50 52 52 73
RTavernier at ifrance.com 

More information about the samba mailing list