Samba & Daylight savings time (was Re: Linux smbfs 2.0.29...)

Roeland M.J. Meyer rmeyer at mhsc.com
Thu Aug 14 05:28:44 GMT 1997


At 11:03 AM 8/14/97 +0000, Charlie Brady wrote:
>
>> Date: Wed, 13 Aug 1997 12:52:21 -0700
>> From: "Roeland M.J. Meyer" <rmeyer at mhsc.com>
>> To: eknuds at extremenetworks.com
>> Cc: "samba at arvidsjaur.anu.edu.au" <samba at arvidsjaur.anu.edu.au>
>> Subject: Re: Linux smbfs 2.0.29...
>> Message-ID: <3.0.2.32.19970813125221.009e0a70 at pop.mhsc.com>
>> 
>> At 04:45 AM 8/14/97 +0000, you wrote:
>> >I was wondering if anyone has had trouble with daylight savings time
>> >handling between Linux and NT 4.0.
>> 
>> Not since I started synching with SNTP.
>> 
>> check the URL h t t p :  / / time.mhsc.com
>> 
>> I have setup a virtual host which discusses time issues on my domain. All
>> machines are at stratuum II, with stratum  III for the WinNT machines. With
>> continuous time-sync, daylight savings time, on NT, is not an issue any
>> longer. Although I'm sure that Bill the Gator would not approve, since he
>> can't get richer from it.

>> This is not a Samba issue.
>
>Unless something has changed in the 1.9.17 series, there is a samba issue
>related to DST. Samba calculates a time offset when it starts up, then
>uses this unchanged forever. If you are starting "smbd" from inetd, this
>is usually good enough. If however you run smbd as a daemon, the time
>offset will become wrong on the transitions to and from daylight savings
>time, resulting in a one hour disrepency in time until smbd is restarted.

I still have to look at the code and maybe Luke can answer this one even
faster, but I am operating under the assumption that all Unix applications
get the time from the system calls ... always! With SNTP the time is
corrected at the system clock, way before any application can get to it.
Samba should not be keeping it's own time offset. 

The host's time is assumed to be correct, especially if they are stratum I
or II  servers. The PC is assumed to need adjusting when a discrepency is
found.

BTW, the URL I gave above for my time servers is wrong. The correct one is
http://tic.mhsc.com , sorry.

_________________________________________________
Roeland M.J. Meyer (RM993)                                  
e-mail:		rmeyer at mhsc.com
web pages:	http://www.mhsc.com/~rmeyer
            
_________________________________________________



More information about the samba mailing list